开发者

How to define frequency of SyncAdapter updates on android?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜