Syncadapter last update date

南笙酒味 提交于 2019-12-12 17:44:49

问题


How can obtain the last update date from the sync adapters services (marked with red) ?


回答1:


Interesting. The API would (almost have to be) on android.content.ContentResolver as that's where periodic sync and enable/disable sync is managed. There's no API there to request it.

Are you trying to find this value for your own SyncAdapter or for a third party app?

With your own SyncAdapter, you obviously can just store date() into a single-row sqlite table within your ContentProvider and reference it either from the SyncAdapter or the app.

For a third party app, that information... might not be avaliable?



来源:https://stackoverflow.com/questions/6385279/syncadapter-last-update-date

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