List of usage examples for android.content Intent Intent
public Intent(Context packageContext, Class<?> cls)
From source file:Main.java
public static void startActivityForResult(Activity activity, Class clazz, int requestCode) { activity.startActivityForResult(new Intent(activity, clazz), requestCode); }
From source file:Main.java
public static void simplyNavigateTo(Class activityToNavigateTo, Activity activityToNavigateFrom) { Intent navigationIntent = new Intent(activityToNavigateFrom, activityToNavigateTo); activityToNavigateFrom.startActivity(navigationIntent); }
From source file:Main.java
public static void start_new_activity(Activity activity, Class<?> mclass, boolean is_finish_parent) { Intent myintent = new Intent(activity, mclass); activity.startActivity(myintent);// w w w . j av a 2 s . c om if (is_finish_parent) activity.finish(); }
From source file:Main.java
public static void createActivity(Activity activity, Class<?> activityClass) { Intent intent = new Intent(activity, activityClass); activity.startActivity(intent);/* ww w. j av a 2 s . c om*/ }
From source file:Main.java
public static void startActivity(Context activity, Class clazz) { activity.startActivity(new Intent(activity, clazz)); }
From source file:Main.java
@SuppressWarnings("rawtypes") public static void startOneActivity(Activity mActivity, Class cls) { Intent intent = new Intent(mActivity, cls); mActivity.startActivity(intent);/*from ww w . j ava 2 s .co m*/ mActivity.finish(); }
From source file:Main.java
public static void startActivity(Activity activity, Class clazz) { Intent intent = new Intent(activity, clazz); activity.startActivity(intent);//from ww w . ja v a 2 s .c o m activity.finish(); }
From source file:Main.java
public static void clearDefaultBrowser(Context context, String packgeName) { Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse("package:" + packgeName)); context.startActivity(intent);//from ww w . j a va 2s . c o m }
From source file:Main.java
public static void browse(String url) { Intent browseIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); _context.startActivity(browseIntent); }
From source file:Main.java
public static void goActivity(Context context, Class<?> cls, Bundle bundle) { Intent intent = new Intent(context, cls); if (null != bundle) { intent.putExtras(bundle);//from www.ja v a2 s.c o m } context.startActivity(intent); }