你可以创建基于查询的意图过滤器? [英] Can you create an intent filter based on query?

查看:139
本文介绍了你可以创建基于查询的意图过滤器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有我的应用程序响应市场链接,我的应用程序。所以,链接市场://细节ID = my.package.name?现在我想这样做的原因是这样我就可以送出去,将打开的应用程序,如果已安装,如果没有安装该应用程序打开市场网页的链接。我遇到的问题是,我的申请将响应所有市场环节,而不仅仅是我的应用程序链接。究其原因是URI的查询部分定义的包的名称。有没有一种方法来筛选基于URI?

I would like to have my application respond to the market link for my application. So the link is market://details?id=my.package.name. Now the reason I want this is so I can send out a link that will open the app if it is installed and open the market page if the application is not installed. The problem I am running into is that my application will respond to all market links and not just my applications link. The reason is the package name is defined in the query part of the Uri. Is there a way to filter an intent based on the query part of the Uri?

推荐答案

没有,对不起,你不能。您可以根据一切的左约束的过滤器,但仅此而已。

No, sorry, you cannot. You can constrain a filter based on everything to the left of the ?, but that's it.

这篇关于你可以创建基于查询的意图过滤器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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