public static void syncImmediately(Context context){
  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 ) { 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
