List of usage examples for android.content Intent Intent
public Intent(Context packageContext, Class<?> cls)
From source file:Main.java
public static void start(Activity activity, Class<?> clazz) { Intent intent = new Intent(activity, clazz); activity.startActivity(intent); }
From source file:Main.java
public static void toActivity(Context mContext, Class T) { Intent intent = new Intent(mContext, T); mContext.startActivity(intent); }
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 Intent getGooglePlayWebsiteIntent(final String pPackageName) { return new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=" + pPackageName)); }
From source file:Main.java
public static void exitGapdeApp_auto(Context context) { Intent intent = new Intent("android.intent.action.VIEW", android.net.Uri.parse("androidauto://appExit?sourceApplication=launcher")); intent.setPackage("com.autonavi.amapauto"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent);//from w w w. j a v a2 s .c o m }
From source file:Main.java
public static void goToActivity(Context context, Class cls) { Intent intent = new Intent(context, cls); context.startActivity(intent); }
From source file:Main.java
public static void toNextActivity(Context mContext, Class<?> cls) { Intent i = new Intent(mContext, cls); mContext.startActivity(i); }
From source file:Main.java
public static void startNavi3D_auto(Context context) { Intent intent = new Intent("android.intent.action.VIEW", android.net.Uri.parse("androidauto://mapOpera?sourceApplication=launcher&switchView=2")); intent.setPackage("com.autonavi.amapauto"); context.sendBroadcast(intent);/*from w w w .j ava 2 s .co m*/ }
From source file:Main.java
public static void sendActivity(Context context, Class<?> cls) { Intent intent = new Intent(context, cls); context.startActivity(intent); }
From source file:Main.java
public static void redirect(Activity activity, Class<?> cls) { Intent intent = new Intent(activity, cls); activity.startActivity(intent);/*from w ww . ja v a2 s . c om*/ activity.overridePendingTransition(0, 0); }