Reputation: 20429
If I need to start synchronization adhoc, I use requestSync
. But looks like it doesn't work when setIsSyncable
defined as false
. How to initiate synchronization by user request in this case?
Moreover, if after that I define setIsSyncable
as true
and also start period syncs with addPeriodicSync
, synchronization starts 2 times.
Upvotes: 3
Views: 3147
Reputation: 11453
1: To override setIsSyncable:
Add ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS
set to true
in the requestSync()
extras Bundle.
2: Double-sync
(see comment first)
Upvotes: 4