现在的位置: 首页 > 综合 > 正文

Launch an application from another application on Android

2018年02月10日 ⁄ 综合 ⁄ 共 279字 ⁄ 字号 评论关闭
Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("com.package.address");

startActivity(LaunchIntent);

or

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setComponent(new ComponentName("com.package.address","com.package.address.MainActivity"));
startActivity(intent);

抱歉!评论已关闭.