Java tutorial
//package com.java2s; import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.os.Bundle; public class Main { public static void startPackage(Activity activity, String s, String s1, Bundle bundle) { Intent intent = new Intent(); intent.setComponent(new ComponentName(s, s1)); intent.putExtras(bundle); activity.startActivity(intent); } public static void startActivity(Context context, Class class1) { context.startActivity(new Intent(context, class1)); } public static void startActivity(Context context, Class class1, Bundle bundle) { Intent intent = new Intent(context, class1); intent.putExtras(bundle); context.startActivity(intent); } }