如何让我的网页浏览器应用程序显示在"打开..."点击一个链接的时候? [英] How do I make my web browser app show up in "Open with..." when clicking a link?
本文介绍了如何让我的网页浏览器应用程序显示在"打开..."点击一个链接的时候?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我点击的东西如Gmail的链接,我怎么能有我的web浏览器中显示作为一个选项,打开上述链路?什么code我会实现去呢?甚至只是正确的文档的链接将是难以置信的帮助。
When I click a link in something like Gmail, how can I have my web browser show up as an option to open said link? And what code would I implement to go about it? Even just a link to the correct documentation would be incredibly helpful.
谢谢!
推荐答案
你可能缺少声明这个<意向滤光器>
在清单
You are probably missing to declare this <intent-filter>
in your Manifest
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http"/>
</intent-filter>
这篇关于如何让我的网页浏览器应用程序显示在&QUOT;打开...&QUOT;点击一个链接的时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文