Android Auto-sync with user data

Situation: I have an account for my application that I created after the example code http://developer.android.com/resources/samples/SampleSyncAdapter/index.html . When I click on an account on the "Account and sync" screen, I see the "Sync contacts" checkbox. When this checkbox is active, my user sync is successfully running in the background.

Problem: I do not synchronize contacts, I synchronize user application data. I would like the flag to say something like "Sync Historic Data"

Question: Does anyone know where I can find documentation on how to do this, or what steps do I need to take so that I can search for documentation? Any tips or keywords to help expand / guide my search will also be appreciated.

+4
source share
1 answer

Just add your own android:label attribute to the definition of your content provider in AndroidManifest.xml.

Here is a good basic tutorial on the basics of SyncAdapter.

+3
source

Source: https://habr.com/ru/post/1344828/


All Articles