打开我们的应用程序另一个应用程序? [英] Open another one application from our application?

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

问题描述

这是我的应用程序,我要开一家又一家application.Is有没有可能开这样吗?

From my application i have to open a another one application.Is there any possibility to open like this?

推荐答案

您应该使用软件包管理器的功能。

You should use the function of the package manager.

try {
    Intent i = ctx.getPackageManager().getLaunchIntentForPackage("com.android.browser");
    ctx.startActivity(i);
} catch (NameNotFoundException e) {
    // TODO Auto-generated catch block
}

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

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