android系统中 从一个apk启动另外一个apk


Intent mIntent = new Intent(“android.intent.action.MAIN");
ComponentName comp = new ComponentName("com.installed.project1", "com.installed.project1.ActivityMain");
mIntent.setComponent(comp);
mIntent.addCategory("android.intent.category.LAUNCHER");
startActivity(mIntent);
finish();

你可能感兴趣的:(android)