문제

AuthenticatorService

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

도움이 되었습니까?

해결책

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?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top