Android 启动另一个apk
16lz
2021-01-23
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);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
ComponentName cn = new ComponentName("com.anhuioss.simpleime", "com.anhuioss.simpleime.settings.PreferenceSettingActivity"); //apk包名 类名(要带路径)
intent.setComponent(cn);
startActivity(intent);
更多相关文章
- android获取指定路径下目录文件
- 2013.12.23 ——— android assents文件路径
- Android定义的路径全局变量
- Android Q中外部存储盘路径正则表达式的理解
- android内部外部存储卡路径的获取
- 设置Android SDK tools工作路径环境变量
- Android 模拟器中AVD路径的修改(WIN7)