【发布时间】:2013-01-02 12:58:05
【问题描述】:
我使用intent-filter 用我的应用打开自定义网址,它工作正常..
当我尝试从 google chrome 浏览器或 facebook 本地应用程序帖子中打开我的自定义 url 时(在私人消息中效果很好),它不起作用并将其作为网站打开。
我的代码:
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.SEND" />
<data
android:host="mydomain.co.il"
android:scheme="http" />
<data
android:host="www.mydomain.co.il"
android:scheme="http" />
<data
android:host="www.mydomain.co.il"
android:scheme="myscheme" />
</intent-filter>
【问题讨论】:
-
你可能缺少数据类型?
标签: android google-chrome facebook-android-sdk custom-url