• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
49    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="14"/>
50
51    <application
52        android:icon="@drawable/icon"
53        android:label="@string/label">
54        <!-- The authenticator service -->
55        <service
56            android:name=".authenticator.AuthenticationService"
57            android:exported="true">
58            <intent-filter>
59                <action
60                    android:name="android.accounts.AccountAuthenticator" />
61            </intent-filter>
62            <meta-data
63                android:name="android.accounts.AccountAuthenticator"
64                android:resource="@xml/authenticator" />
65        </service>
66        <service
67            android:name=".syncadapter.SyncService"
68            android:exported="true">
69            <intent-filter>
70                <action
71                    android:name="android.content.SyncAdapter" />
72            </intent-filter>
73            <meta-data
74                android:name="android.content.SyncAdapter"
75                android:resource="@xml/syncadapter" />
76            <meta-data
77                android:name="android.provider.CONTACTS_STRUCTURE"
78                android:resource="@xml/contacts" />
79        </service>
80        <!-- The view notification service -->
81        <service
82            android:name=".notifier.NotifierService"
83            android:exported="true">
84            <!--
85                No intent-filter here! This activity is only ever launched by
86                someone who explicitly knows the class name
87            -->
88        </service>
89        <activity
90            android:name=".authenticator.AuthenticatorActivity"
91            android:label="@string/ui_activity_title"
92            android:theme="@android:style/Theme.Dialog"
93            android:excludeFromRecents="true"
94            android:configChanges="orientation"
95            >
96            <!--
97                No intent-filter here! This activity is only ever launched by
98                someone who explicitly knows the class name
99            -->
100        </activity>
101
102        <activity
103            android:name=".activites.InviteContactActivity"
104            android:theme="@android:style/Theme.Dialog">
105            <!--
106                We use the INVITE intent to add a raw contact to an existing contact.
107                It always comes with a lookup URI.
108            -->
109            <intent-filter>
110                <action
111                    android:name="com.android.contacts.action.INVITE_CONTACT" />
112                <data
113                    android:mimeType="vnd.android.cursor.item/contact" />
114            </intent-filter>
115        </activity>
116
117        <activity
118            android:name=".activities.ViewGroupActivity"
119            android:theme="@android:style/Theme.Dialog">
120            <!--
121                We use the VIEW intent to view a group in our app.
122                It always comes with a lookup URI.
123            -->
124            <intent-filter>
125                <action
126                    android:name="android.intent.action.VIEW" />
127                <data
128                    android:mimeType="vnd.android.cursor.item/group" />
129            </intent-filter>
130        </activity>
131    </application>
132</manifest>
133