开放第三方应用程序

编程入门 行业动态 更新时间:2024-10-25 08:17:42
本文介绍了开放第三方应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我开发使用packagenames启动第三方应用程序的应用程序。我做了一些研究,发现所有的应用程序可以从发射意图开始。是否有任何人知道如何从一个按钮,点击做到这一点。

I am developing an app that uses packagenames to start a Third Party App. I have done some research and found out that all apps can be started from a launcher intent. Are there anyone that knows how to do this from a click of a Button.

推荐答案

您不能真正启动应用程序。你可以尝试从第三方应用程序启动意图,如果你知道包名称:

You can't really 'start applications'. You can try to get the Launch Intent from the 3rd party application if you know the packagename:

Intent intent = getPackageManager().getLaunchIntentForPackage("com.thirdparty.package"); startActivity( intent );

更多推荐

开放第三方应用程序

本文发布于:2023-11-27 03:29:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1636385.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:第三方   应用程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!