Home | History | Annotate | Download | only in SampleSyncAdapter
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /**
      4  * Copyright (c) 2010, The Android Open Source Project
      5  *
      6  * Licensed under the Apache License, Version 2.0 (the "License");
      7  * you may not use this file except in compliance with the License.
      8  * You may obtain a copy of the License at
      9  *
     10  *     http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS,
     14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15  * See the License for the specific language governing permissions and
     16  * limitations under the License.
     17  */
     18 -->
     19 <manifest
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     package="com.example.android.samplesync"
     22     android:versionCode="1"
     23     android:versionName="1.0">
     24     <uses-permission
     25         android:name="android.permission.GET_ACCOUNTS" />
     26     <uses-permission
     27         android:name="android.permission.USE_CREDENTIALS" />
     28     <uses-permission
     29         android:name="android.permission.MANAGE_ACCOUNTS" />
     30     <uses-permission
     31         android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
     32     <uses-permission
     33         android:name="android.permission.INTERNET" />
     34     <uses-permission
     35         android:name="android.permission.WRITE_SETTINGS" />
     36     <uses-permission
     37         android:name="android.permission.WRITE_SECURE_SETTINGS" />
     38     <uses-permission
     39         android:name="android.permission.READ_CONTACTS" />
     40     <uses-permission
     41         android:name="android.permission.WRITE_CONTACTS" />
     42     <uses-permission
     43         android:name="android.permission.READ_SYNC_STATS" />
     44     <uses-permission
     45         android:name="android.permission.READ_SYNC_SETTINGS" />
     46     <uses-permission
     47         android:name="android.permission.WRITE_SYNC_SETTINGS" />
     48     <uses-permission
     49         android:name="android.permission.READ_SOCIAL_STREAM" />
     50     <uses-permission
     51         android:name="android.permission.WRITE_SOCIAL_STREAM" />
     52 
     53     <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" />
     54 
     55     <application
     56         android:icon="@drawable/icon"
     57         android:label="@string/label">
     58         <!-- The authenticator service -->
     59         <service
     60             android:name=".authenticator.AuthenticationService"
     61             android:exported="true">
     62             <intent-filter>
     63                 <action
     64                     android:name="android.accounts.AccountAuthenticator" />
     65             </intent-filter>
     66             <meta-data
     67                 android:name="android.accounts.AccountAuthenticator"
     68                 android:resource="@xml/authenticator" />
     69         </service>
     70         <service
     71             android:name=".syncadapter.SyncService"
     72             android:exported="true">
     73             <intent-filter>
     74                 <action
     75                     android:name="android.content.SyncAdapter" />
     76             </intent-filter>
     77             <meta-data
     78                 android:name="android.content.SyncAdapter"
     79                 android:resource="@xml/syncadapter" />
     80             <meta-data
     81                 android:name="android.provider.CONTACTS_STRUCTURE"
     82                 android:resource="@xml/contacts" />
     83         </service>
     84         <!-- The view notification service -->
     85         <service
     86             android:name=".notifier.NotifierService"
     87             android:exported="true">
     88             <!--
     89                 No intent-filter here! This activity is only ever launched by
     90                 someone who explicitly knows the class name
     91             -->
     92         </service>
     93         <activity
     94             android:name=".authenticator.AuthenticatorActivity"
     95             android:label="@string/ui_activity_title"
     96             android:theme="@android:style/Theme.Dialog"
     97             android:excludeFromRecents="true"
     98             android:configChanges="orientation"
     99             >
    100             <!--
    101                 No intent-filter here! This activity is only ever launched by
    102                 someone who explicitly knows the class name
    103             -->
    104         </activity>
    105 
    106         <activity
    107             android:name=".activites.InviteContactActivity"
    108             android:theme="@android:style/Theme.Dialog">
    109             <!--
    110                 We use the INVITE intent to add a raw contact to an existing contact.
    111                 It always comes with a lookup URI.
    112             -->
    113             <intent-filter>
    114                 <action
    115                     android:name="com.android.contacts.action.INVITE_CONTACT" />
    116                 <data
    117                     android:mimeType="vnd.android.cursor.item/contact" />
    118             </intent-filter>
    119         </activity>
    120 
    121         <activity
    122             android:name=".activities.ViewGroupActivity"
    123             android:theme="@android:style/Theme.Dialog">
    124             <!--
    125                 We use the VIEW intent to view a group in our app.
    126                 It always comes with a lookup URI.
    127             -->
    128             <intent-filter>
    129                 <action
    130                     android:name="android.intent.action.VIEW" />
    131                 <data
    132                     android:mimeType="vnd.android.cursor.item/group" />
    133             </intent-filter>
    134         </activity>
    135 
    136         <activity
    137             android:name=".activities.ViewStreamItemActivity"
    138             android:theme="@android:style/Theme.Dialog">
    139             <!--
    140                 We use the VIEW intent to view a stream item in our app.
    141                 It always comes with a lookup URI.
    142             -->
    143             <intent-filter>
    144                 <action
    145                     android:name="android.intent.action.VIEW" />
    146                 <data
    147                     android:mimeType="vnd.android.cursor.item/stream_item" />
    148             </intent-filter>
    149         </activity>
    150 
    151         <activity
    152             android:name=".activities.ViewStreamItemPhotoActivity"
    153             android:theme="@android:style/Theme.Dialog">
    154             <!--
    155                 We use the VIEW intent to view a stream item photo in our app.
    156                 It always comes with a lookup URI.
    157             -->
    158             <intent-filter>
    159                 <action
    160                     android:name="android.intent.action.VIEW" />
    161                 <data
    162                     android:mimeType="vnd.android.cursor.item/stream_item_photo" />
    163             </intent-filter>
    164         </activity>
    165     </application>
    166 </manifest>
    167