Example #1
0
 public static void showSimpleBackForResult(
     Activity context, int requestCode, SimpleBackPage page, Bundle args) {
   Intent intent = new Intent(context, SimpleBackActivity.class);
   intent.putExtra(SimpleBackActivity.BUNDLE_KEY_PAGE, page.getValue());
   intent.putExtra(SimpleBackActivity.BUNDLE_KEY_ARGS, args);
   context.startActivityForResult(intent, requestCode);
 }
Example #2
0
 public static void showSimpleBack(Context context, SimpleBackPage page, Bundle args) {
   Intent intent = new Intent(context, SimpleBackActivity.class);
   intent.putExtra(SimpleBackActivity.BUNDLE_KEY_ARGS, args);
   intent.putExtra(SimpleBackActivity.BUNDLE_KEY_PAGE, page.getValue());
   context.startActivity(intent);
 }