List of usage examples for android.content Context startActivity
public abstract void startActivity(@RequiresPermission Intent intent);
From source file:Main.java
public static void startActivity(Context context, Intent intent) { context.startActivity(intent); }
From source file:Main.java
public static void openBrowserInNewTask(Context context, String url) { context.startActivity( new Intent(Intent.ACTION_VIEW, Uri.parse(url)).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); }
From source file:Main.java
public static void goLanguageSettingPage(Context context) { context.startActivity(new Intent(android.provider.Settings.ACTION_LOCALE_SETTINGS)); }
From source file:Main.java
public static void uninstall(Context context, String pkg) { context.startActivity(new Intent(Intent.ACTION_DELETE, Uri.parse("package:" + pkg))); }
From source file:Main.java
public static void startAct(Context context, Class activity) { context.startActivity(new Intent(context, activity)); }
From source file:Main.java
public static <T extends Activity> void display(Context context, Class<T> clazz) { context.startActivity(new Intent(context, clazz)); }
From source file:Main.java
public static void link(Context context, Uri link) { context.startActivity(new Intent(Intent.ACTION_VIEW, link)); }
From source file:Main.java
public static void goOtherActivityNoAnim(Context context, Intent intent) { context.startActivity(intent); ((Activity) context).overridePendingTransition(0, 0); }
From source file:Main.java
private static void startViewUri(Context context, String string2) { context.startActivity(new Intent("android.intent.action.VIEW", Uri.parse((String) string2))); }
From source file:Main.java
public static void link(Context context, String link) { context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(link))); }