我知道我可以用Intent
打开Activity,但我试图从我的应用程序打开特定的活动。如何打开第三方应用程序的特定活动
Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.3rdPartyApplcation");
if (launchIntent != null)
{
startActivity(launchIntent);
}
例子: - 我的应用程序是一个我都开设置应用程序B的页这是第三方应用程序,我也知道活动名称。
如何通过意向
解决方案https://stackoverflow.com/a/2210073/1872098和第三方应用程序的活动必须有出口= true在清单 –
最有可能的,这种活动不出口,因此,你可以不启动它。 – CommonsWare
java.lang.SecurityException:Permission Denial:starting Intent我还添加了android:exported =“true” –