Android 启动另一个apk

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);           
ComponentName cn = new ComponentName("com.anhuioss.simpleime", "com.anhuioss.simpleime.settings.PreferenceSettingActivity");        //apk包名   类名(要带路径)  
intent.setComponent(cn);
startActivity(intent);

你可能感兴趣的:(android)