How to define frequency of SyncAdapter updates on android?

泄露秘密 提交于 2019-12-22 10:34:00

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/5525593/how-to-define-frequency-of-syncadapter-updates-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!