Megha Joshi | 00bf0f0 | 2009-11-18 14:54:03 -0800 | [diff] [blame] | 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 | <application |
| 50 | android:icon="@drawable/icon" |
| 51 | android:label="@string/label"> |
| 52 | <!-- The authenticator service --> |
| 53 | <service |
| 54 | android:name=".authenticator.AuthenticationService" |
| 55 | android:exported="true"> |
| 56 | <intent-filter> |
| 57 | <action |
| 58 | android:name="android.accounts.AccountAuthenticator" /> |
| 59 | </intent-filter> |
| 60 | <meta-data |
| 61 | android:name="android.accounts.AccountAuthenticator" |
| 62 | android:resource="@xml/authenticator" /> |
| 63 | </service> |
| 64 | <service |
| 65 | android:name=".syncadapter.SyncService" |
| 66 | android:exported="true"> |
| 67 | <intent-filter> |
| 68 | <action |
| 69 | android:name="android.content.SyncAdapter" /> |
| 70 | </intent-filter> |
| 71 | <meta-data |
| 72 | android:name="android.content.SyncAdapter" |
| 73 | android:resource="@xml/syncadapter" /> |
| 74 | <meta-data |
| 75 | android:name="android.provider.CONTACTS_STRUCTURE" |
| 76 | android:resource="@xml/contacts" /> |
| 77 | </service> |
| 78 | <activity |
| 79 | android:name=".authenticator.AuthenticatorActivity" |
| 80 | android:label="@string/ui_activity_title" |
| 81 | android:theme="@android:style/Theme.Dialog" |
| 82 | android:excludeFromRecents="true" |
| 83 | > |
| 84 | <!-- |
| 85 | No intent-filter here! This activity is only ever launched by |
| 86 | someone who explicitly knows the class name |
| 87 | --> |
| 88 | </activity> |
| 89 | </application> |
| 90 | <uses-sdk |
| 91 | android:minSdkVersion="5" /> |
| 92 | </manifest> |