Hi I am new to Android and need some help!.

I have a SyncAdapter, which uses the SyncResult SyncStats to pass 
information back to the Android SyncManager, during a sync e.g.:

public void onPerformSync(final Account account, Bundle extras, String 
authority,
   final ContentProviderClient provider, final SyncResult syncResult) {
...
++syncResult.stats.numInserts;... 
}

It would be useful to have access to these stats in my Activity so that I 
can display some of them to the user. How can I get access to the SyncResult
 SyncStats from my Activity when a sync is complete? Is there a way to do 
this?.

-- 
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

Reply via email to