SyncAdapter running animation - how to know if SyncAdapter is actively synchronizing
问题 I want to show a ProgressBar in the ActionBar while my SyncAdapter is actively synchronizing content to and from the web. I have tried using the SyncStatusObserver together with ContentProvider.addStatusChangeListener. However, I cannot check if a SyncAdapter is actively running. I can only check: SyncAdapter is pending using ContentResolver.isSyncPending SyncAdapter is pending OR actively working using ContentResolver.isSyncActive These flags can be combined: !isSyncPending && isSyncActive