How to determine the frequency of SyncAdapter updates on Android?

ContentProvided, defined for synchronization, is dummy (in accordance with this approach ).

+3
source share
1 answer

If API> 8 (95% of devices) uses ContentResolver.addPeriodicSync()

If API = 7 (5.5% of devices as of March 2102), create a service with a periodic timer ContentResolver.requestSync() and call ContentResolver.requestSync() .

API <6 does not support syncAdapter, so do not worry.

+14
source

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


All Articles