Last active
August 29, 2015 14:05
-
-
Save udacityandroid/335d2fcf012d8e59c6fd to your computer and use it in GitHub Desktop.
Adding everything to the AndroidManifest for the SyncAdapter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- SyncAdapter's dummy authentication service --> | |
<service | |
android:name=".sync.SunshineAuthenticatorService" | |
> | |
<intent-filter> | |
<action android:name="android.accounts.AccountAuthenticator" /> | |
</intent-filter> | |
<meta-data | |
android:name="android.accounts.AccountAuthenticator" | |
android:resource="@xml/authenticator" /> | |
</service> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<provider | |
android:authorities="@string/content_authority" | |
android:name=".data.WeatherProvider" | |
android:exported="false" | |
android:syncable="true" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Permissions required by the sync adapter --> | |
<uses-permission | |
android:name="android.permission.READ_SYNC_SETTINGS"/> | |
<uses-permission | |
android:name="android.permission.WRITE_SYNC_SETTINGS"/> | |
<uses-permission | |
android:name="android.permission.AUTHENTICATE_ACCOUNTS"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- The SyncAdapter service --> | |
<service | |
android:name=".sync.SunshineSyncService" | |
android:exported="true" | |
> | |
<intent-filter> | |
<action android:name="android.content.SyncAdapter" /> | |
</intent-filter> | |
<meta-data | |
android:name="android.content.SyncAdapter" | |
android:resource="@xml/syncadapter" /> | |
</service> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment