我知道我可以用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」 –