开发者

How to define frequency of SyncAdapter updates on android?

开发者 https://www.devze.com 2023-02-21 21:00 出处:网络
ContentProvided开发者_开发技巧 defined for synchronization is dummy (in accordance with this approach).If API > 8, (95% of devices) use ContentResolver.addPeriodicSync()

ContentProvided开发者_开发技巧 defined for synchronization is dummy (in accordance with this approach).


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

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

API < 6 does not support syncAdapter, so no worries.

0

精彩评论

暂无评论...
验证码 换一张
取 消