android - 无法在 android 10/11 中从 Android 服务器打开其他应用程序
问题描述
嗨,我正在尝试使用以下代码从我的应用程序中使用 android 服务打开另一个应用程序(例如:youtube)
Intent intent = getPackageManager().getLaunchIntentForPackage("other app package
name");
startActivity(intent);
它无法在 Android 10 以下打开 appin android 10 及更高版本能够启动如何修复它 Android 10 /11 谢谢
解决方案
推荐阅读
- excel - ImportExcel 用于具有多个表的数据集
- java - 使用 java 在 selenium 中为 owasp zap 设置驱动程序
- google-cloud-platform - 有什么方法可以在 Google DataProc 作业失败时通过电子邮件发送作业状态?
- eclipse - Eclipse 调试:将“Step over”转为“Run to next line”
- python-2.7 - 如何使用 python2.7 在 64 位 windows 10 机器上安装 lxml
- jakarta-ee - 是否可以在 Wildfly 15 中运行完整的 Java EE 6 应用程序?
- entity-framework-6 - Entity Framework 6, Repository Pattern, Unit of Work, Save and get last ID 然后更新记录
- javascript - 如何应用锚链接,以便在滚动时在顶部留下一些空间?
- java - Spring JPA 用其他表引用一个表
- node.js - 如何将变量流式传输到文件 Node JS?