List of usage examples for android.app Activity startActivity
@Override public void startActivity(Intent intent)
From source file:Main.java
public static void startActivity(Activity activity, Class clazz) { Intent intent = new Intent(activity, clazz); activity.startActivity(intent); activity.finish();// w w w.jav a 2 s . co m }
From source file:Main.java
public static void goAc(Activity activity1, Class activity2) { Intent OpenCalc = new Intent(activity1, activity2); activity1.startActivity(OpenCalc); }
From source file:Main.java
public static void startActivity(Activity packageContext, Class<?> cls) { Intent intent = new Intent(packageContext, cls); packageContext.startActivity(intent); }
From source file:Main.java
public static void startActivity(Intent intent, Activity activity, Class classActivity) { intent.setClass(activity, classActivity); activity.startActivity(intent); }
From source file:Main.java
public static void GoSetting(Activity activity) { Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS); activity.startActivity(intent); }
From source file:Main.java
public static void begin(Activity activity, Class classTo) { Intent intent = new Intent().setClass(activity, classTo); activity.startActivity(intent); }
From source file:Main.java
public static void openWithBrowser(Activity activity, String url) { Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); activity.startActivity(i); }
From source file:Main.java
public static void startSetNetActivity(Activity activity) { Intent intent = new Intent(Settings.ACTION_AIRPLANE_MODE_SETTINGS); activity.startActivity(intent); }
From source file:Main.java
public static void sendTo(Activity activity, Class classTo) { Intent intent = new Intent().setClass(activity, classTo); activity.startActivity(intent); activity.finish();/*from w ww. j a va 2 s . c o m*/ }
From source file:Main.java
public static void startActivityAndFinish(Activity packageContext, Class<?> cls) { Intent intent = new Intent(packageContext, cls); packageContext.startActivity(intent); packageContext.finish();/*from w w w . j a v a2 s .com*/ }