I try to understand the Android synchronization logic. What I don't understand is the file syncadapter.xml
contained in the Android SDK sample project SampleSyncAdapter
. If you downloaded the SDK samples it should be in the following folder:
SDK/android-sdk-PLATFORM/samples/android-VERSION/SampleSyncAdapter/res/xml/syncadapter.xml
I read, the authority of a content provider should be a string or a reference to a resource. What exactly is the content authority and where is com.android.contacts
? Here is the content of the file (w/o license information and comments, API level 16).
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
android:contentAuthority="com.android.contacts"
android:accountType="com.example.android.samplesync"
android:supportsUploading="false"
android:userVisible="true"
/>
android:contentAuthority
settings. – Ethbun