This should only be used when we need to preempt the normal sync schedule. Typically, this * means the user has pressed the "refresh" button. * * Note that SYNC_EXTRAS_MANUAL will cause an immediate sync, without any optimization to * preserve battery life. If you know new data is available (perhaps via a GCM notification), * but the user is not actively waiting for that data, you should omit this flag; this will give * the OS additional freedom in scheduling your sync request. */ public static void TriggerRefresh() { Bundle b = new Bundle(); // Disable sync backoff and ignore sync preferences. In other words...perform sync NOW! b.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); b.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); ContentResolver.requestSync( GenericAccountService.GetAccount(ACCOUNT_TYPE), // Sync account FeedContract.CONTENT_AUTHORITY, // Content authority b); // Extras } }