I currently have my Android app set up to use the AccountManager feature of Android, using a SyncAdapter and an authenticated account to performs syncs automatically.
I only have 1 sync adapter running which syncs all content, but I would like to separate this out to performs syncs for different content at different intervals.
How can I have multiple sync items like Google does?
You just have to define several sync adapters, using the same account type.
The manifest contains:
And
syncdataper_foo
isAnd
syncdataper_bar
isNote that in the case of the account type "com.google", the sync adapters are even provided by different applications (Drive, Docs, Sheets, Gmail, Calendar, etc.).