1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 Copyright 2013 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18 19 20 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 21 package="com.example.android.basicsyncadapter" 22 android:versionCode="1" 23 android:versionName="1.0"> 24 25 <!-- SyncAdapters are available in API 5 and above. We use API 7 as a baseline for samples. --> 26 <uses-sdk 27 android:minSdkVersion="7" 28 android:targetSdkVersion="17" /> 29 30 <!-- Required for fetching feed data. --> 31 <uses-permission android:name="android.permission.INTERNET"/> 32 <!-- Required to register a SyncStatusObserver to display a "syncing..." progress indicator. --> 33 <uses-permission android:name="android.permission.READ_SYNC_STATS"/> 34 <!-- Required to enable our SyncAdapter after it's created. --> 35 <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/> 36 <!-- Required because we're manually creating a new account. --> 37 <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/> 38 39 40 <application 41 android:allowBackup="true" 42 android:icon="@drawable/ic_launcher" 43 android:label="@string/app_name" 44 android:theme="@style/AppTheme" > 45 46 <!-- Main activity, responsible for showing a list of feed entries. --> 47 <activity 48 android:name=".EntryListActivity" 49 android:label="@string/app_name" > 50 <!-- This intent filter places this activity in the system's app launcher. --> 51 <intent-filter> 52 <action android:name="android.intent.action.MAIN" /> 53 <category android:name="android.intent.category.LAUNCHER" /> 54 </intent-filter> 55 </activity> 56 57 <!-- ContentProvider to store feed data. 58 59 The "authorities" here are defined as part of a ContentProvider interface. It's used here 60 as an attachment point for the SyncAdapter. See res/xml/syncadapter.xml and 61 SyncService.java. 62 63 Since this ContentProvider is not exported, it will not be accessible outside of this app's 64 package. --> 65 <provider 66 android:name=".provider.FeedProvider" 67 android:authorities="com.example.android.basicsyncadapter" 68 android:exported="false" /> 69 70 <!-- This service implements our SyncAdapter. It needs to be exported, so that the system 71 sync framework can access it. --> 72 <service android:name=".SyncService" 73 android:exported="true"> 74 <!-- This intent filter is required. It allows the system to launch our sync service 75 as needed. --> 76 <intent-filter> 77 <action android:name="android.content.SyncAdapter" /> 78 </intent-filter> 79 <!-- This points to a required XML file which describes our SyncAdapter. --> 80 <meta-data android:name="android.content.SyncAdapter" 81 android:resource="@xml/syncadapter" /> 82 </service> 83 84 <!-- This implements the account we'll use as an attachment point for our SyncAdapter. Since 85 our SyncAdapter doesn't need to authenticate the current user (it just fetches a public RSS 86 feed), this account's implementation is largely empty. 87 88 It's also possible to attach a SyncAdapter to an existing account provided by another 89 package. In that case, this element could be omitted here. --> 90 <service android:name="com.example.android.common.accounts.GenericAccountService"> 91 <!-- Required filter used by the system to launch our account service. --> 92 <intent-filter> 93 <action android:name="android.accounts.AccountAuthenticator" /> 94 </intent-filter> 95 <!-- This points to an XMLf ile which describes our account service. --> 96 <meta-data android:name="android.accounts.AccountAuthenticator" 97 android:resource="@xml/authenticator" /> 98 </service> 99 100 </application> 101 102 </manifest>