打开android.intent.action.VIEW另一个应用程序 [英] Open Another App with android.intent.action.VIEW

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

问题描述

我想打开另一个应用程序,并在其中打开一个特定的页面!
他们的指南中,他们说要使用默认的动作波纹管

I want to open another app and open a specific page in it! in their guide they said to use the bellow for default action

android.intent.action.VIEW

和用一种意图,而没有得到,像波纹管去那个特定的网页:

and use a kind of intent, which didn't get which, like bellow to go to that specific page:

somecompany://details?id=com.example.calendar

但我不知道怎么办!
和我trye​​d一吨的解决方案,但coudn't做到这一点!

but i don't know how! And i tryed a ton of solutions but coudn't do it !

感谢您的帮助。

推荐答案

我觉得这是你问什么。这将在谷歌Play商店打开特定的应用程序的页面。

I think this is what you're asking for. This will open a specific app's page in the Google Play store.

startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(
    "market://details?id=com.mycompany.mypackage")));

不要替换词市场。这是专门由Android保留打开谷歌Play商店。

Don't replace the word market. That is specifically reserved by Android to open the Google Play store.

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

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