开放第三方应用程序 [英] Open third party app

查看:133
本文介绍了开放第三方应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发使用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 );

这篇关于开放第三方应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆