【发布时间】:2014-08-06 08:49:17
【问题描述】:
我想捕捉我的网站 url 的查看操作和我网站中的特定路径。
http://examplesite.com/
http://examplesite.com/detail/nameOfProduct
我希望为第一个 url 打开主要活动,所以我使用了:
<data
android:host="examplesite.com"
android:scheme="http"/>
对于第二个 url,我希望打开详细活动,所以我输入:
<data
android:host="examplesite.com"
android:pathPrefix="/detail"
android:scheme="http"/>
现在的问题是,当在意图中调用第一个 URL 时,两个活动都会显示给用户选择,而我只想显示主要活动。我怎么解决这个问题。我做错了什么?
【问题讨论】:
标签: android android-intent intentfilter