anyone could help please? On Dec 3, 2:11 pm, focuser <[email protected]> wrote: > Thanks, > > but like I've already said in the message, "The > ContentResolver.addSyncStatusListener method > seems not useful since it notifies SyncStatusObserver when the sync > status of any SyncAdapter changes, not the particular sync identified > by an account+authority combination. " > > Using SyncStatusObserver would cause way too many refreshes. > > On Dec 2, 4:04 pm, "afterhoursdevelopers.com" > > > > > > > > <[email protected]> wrote: > > Check out > > >http://developer.android.com/reference/android/content/SyncStatusObse... > > > On Dec 2, 6:34 pm, focuser <[email protected]> wrote: > > > > Hi, > > > > I am experiementing with SyncAdatpers and have a few questions that I > > > could not find answers either in the documentation or this group > > > yet. > > > > - How to monitor the status of sync after requesting it via > > > ContentResolver.requestSync? For example, I need to refresh the UI > > > when the requested sync finishes. > > > > The javadoc of the method talks about "SyncObserver" which does not > > > actually exist. The ContentResolver.addSyncStatusListener method > > > seems not useful since it notifies SyncStatusObserver when the sync > > > status of any SyncAdapter changes, not the particular sync identified > > > by an account+authority combination. The current method I use is to > > > spawn a thread which checks the result of ContentResolver.isSyncActive/ > > > isSyncPending continuously. But it's quick and dirty solution. I > > > guess one could also extends AbstractThreadedSyncAdapter and write a > > > new binder but it seems overkill. I assume there are better > > > solutions? > > > > - How to check if a SyncAdatper is CHECKED in the "Accounts & Sync" > > > settings? ContentResolver.getIsSyncable only checks if a SyncAdapter > > > is available for a given account. It will always return true no > > > matter if that checkbox is checked or not, as long as the checkbox > > > exists in the settings. > > > > - The sync icon on the status bar seems only visible when calling > > > requestSync with SYNC_EXTRAS_MANUAL set to true. Without that extra, > > > a sync would be succesfully requested and executed, but the icon does > > > not appear at all. Is this by design? And why? > > > > Thanks for your help!
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

