List of usage examples for android.app Activity setResult
public final void setResult(int resultCode, Intent data)
From source file:Main.java
public static void resultSetParameter(Activity context, int resultCode, String extraName, int[] extraValue) { Intent intent = new Intent(); intent.putExtra(extraName, extraValue); context.setResult(resultCode, intent); }
From source file:Main.java
public static void resultSetParameter(Activity context, int resultCode, String extraName, float extraValue) { Intent intent = new Intent(); intent.putExtra(extraName, extraValue); context.setResult(resultCode, intent); }
From source file:Main.java
public static void resultSetParameter(Activity context, int resultCode, String extraName, String extraValue) { Intent intent = new Intent(); intent.putExtra(extraName, extraValue); context.setResult(resultCode, intent); }
From source file:Main.java
public static void resultSetParameter(Activity context, int resultCode, String extraName, double extraValue) { Intent intent = new Intent(); intent.putExtra(extraName, extraValue); context.setResult(resultCode, intent); }
From source file:Main.java
public static void resultSetParameter(Activity context, int resultCode, String extraName, float[] extraValue) { Intent intent = new Intent(); intent.putExtra(extraName, extraValue); context.setResult(resultCode, intent); }
From source file:Main.java
public static void resultSetParameter(Activity context, int resultCode, String extraName, double[] extraValue) { Intent intent = new Intent(); intent.putExtra(extraName, extraValue); context.setResult(resultCode, intent); }
From source file:Main.java
public static void resultSetParameter(Activity context, int resultCode, String extraName, Parcelable extraValue) {// ww w .java 2s . c om Intent intent = new Intent(); intent.putExtra(extraName, extraValue); context.setResult(resultCode, intent); }
From source file:Main.java
public static void finishActivityWithSetting(Activity paramActivity, String paramString1, String paramString2) { if (paramString1 != null) { Intent localIntent = new Intent(); localIntent.putExtra("setting_raw", paramString1); localIntent.putExtra("setting_label", paramString2); paramActivity.setResult(-1, localIntent); }/*from w w w .j a v a 2 s .c o m*/ paramActivity.finish(); }
From source file:com.hxqc.aroundservice.util.ActivitySwitchAround.java
/** * @param activity/*from w ww . ja v a2s. c o m*/ */ public static void toOrderDetailActivity(Activity activity) { Intent intent = new Intent(); activity.setResult(OrderDetailContants.CANDEL_SRCCESS, intent); }
From source file:org.chromium.chrome.browser.firstrun.FirstRunActivity.java
private static void finishAllFREActivities(int result, Intent data) { List<WeakReference<Activity>> activities = ApplicationStatus.getRunningActivities(); for (WeakReference<Activity> weakActivity : activities) { Activity activity = weakActivity.get(); if (activity instanceof FirstRunActivity) { activity.setResult(result, data); activity.finish();/* w w w .ja va2 s.co m*/ } } }