The answer is right here in the documentation: https://developer.android.com/reference/android/content/AbstractThreadedSyncAdapter.html#onPerformSync(android.accounts.Account, android.os.Bundle, java.lang.String, android.content.ContentProviderClient, android.content.SyncResult) "*... invocations of this method are guaranteed to be serialized.*"
and when calling a startSync while another onPerformSync is still busy: https://developer.android.com/reference/android/content/AbstractThreadedSyncAdapter.html "*...If a sync operation is already in progress when a startSync() request is received then an error will be returned to the new request and the existing request will be allowed to continue*" On Wednesday, January 16, 2013 10:11:52 AM UTC-5, saladbowl wrote: > > I have created a SyncAdapter class which inherits from > AbstractThreadedSyncAdapter and runs in its own Service. > > I was wondering if the SyncManager only allows one synchronisation to be > undertaken at a time (i.e via a called to my SyncAdapter's onPerformSync()) > or do I need to explicitly make sure my SyncAdapter's onPerformSync() that > my data is not corrupted if I two synchronisations happen at the same time?. > > Thanks very much. > -- 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

