app/src/main/java/com/example/android/popularmoviesapp/sync/PopMoviesSyncAdapter.java
public static void syncImmediately(Context context) {
        Log.d(LOG_TAG, "syncImmediately");
        Bundle bundle = new Bundle();
        bundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);
        bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);
        ContentResolver.requestSync(getSyncAccount(context),
                context.getString(R.string.content_authority), bundle);
    }
/**
     * Helper method to have the sync adapter sync immediately
     *
     * @param context The context used to access the account service
     */
Helper method to have the sync adapter sync immediately
@param context The context used to access the account service
Helper method to have the sync adapter sync immediately @param context The context used to access the account service
public static void syncImmediately(Context context) {
        Log.d(LOG_TAG, "syncImmediately");
        Bundle bundle = new Bundle();
        bundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);
        bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);
        ContentResolver.requestSync(getSyncAccount(context),
                context.getString(R.string.content_authority), bundle);
    }
public static void syncImmediately ( Context context ) { Log . d ( LOG_TAG , "syncImmediately" ) ; Bundle bundle = new Bundle ( ) ; bundle . putBoolean ( ContentResolver . SYNC_EXTRAS_EXPEDITED , true ) ; bundle . putBoolean ( ContentResolver . SYNC_EXTRAS_MANUAL , true ) ; ContentResolver . requestSync ( getSyncAccount ( context ) , context . getString ( R . string . content_authority ) , bundle ) ; }
Helper method to have the sync adapter sync immediately
 @param context The context used to access the account service
Helper method to have the sync adapter sync immediately @param context The context used to access the account service