首页 > 解决方案 > 无法在 android 10/11 中从 Android 服务器打开其他应用程序

问题描述

嗨,我正在尝试使用以下代码从我的应用程序中使用 android 服务打开另一个应用程序(例如:youtube)

Intent intent = getPackageManager().getLaunchIntentForPackage("other app package 
 name");
startActivity(intent);

它无法在 Android 10 以下打开 appin android 10 及更高版本能够启动如何修复它 Android 10 /11 谢谢

标签: androidandroid-10.0android-11

解决方案


推荐阅读