Implemented Sync Adapter

This commit is contained in:
Caesar2011
2019-01-03 01:02:11 +01:00
parent 8160ef12b1
commit 6306cc9c77
61 changed files with 394 additions and 214 deletions

View File

@@ -18,6 +18,8 @@
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<application
android:allowBackup="true"
@@ -47,17 +49,36 @@
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>
<provider
android:authorities="de.sebse.fuplanner.contentprovider.kvv.modules"
android:name="de.sebse.fuplanner.services.kvv.sync.KVVContentProvider"
android:exported="false"
android:syncable="true">
</provider>
<activity
android:name=".services.newkvv.FUAuthenticatorActivity"
android:name=".services.fulogin.FUAuthenticatorActivity"
android:label="@string/title_activity_fuauthenticator" />
<service android:name=".services.newkvv.FUAuthenticatorService">
<service android:name=".services.fulogin.FUAuthenticatorService">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator" />
</service>
<service
android:name=".services.kvv.sync.KVVSyncService"
android:label="@string/kvv_sync"
android:exported="false">
<intent-filter>
<action android:name="android.content.SyncAdapter" />
</intent-filter>
<meta-data
android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter_kvv" />
</service>
</application>