[英]When I am in a browser and I click on a link I want see my app in an action list and I go to the link using my app
Consider we have a link as follows in a html
file. 考虑我们在
html
文件中具有如下链接。
<html>
<body>
<a href="http://127.0.0.1:8080/link.html/"> Link </a>
</body>
</html>
I want when I am in a browser and I click the above link, first I see my application in a action list and when I click on the my application on the action list I go to the link by my application. 我想在浏览器中单击上面的链接时,首先要在操作列表中看到我的应用程序,当我在操作列表中单击我的应用程序时,我会按应用程序转到该链接。 I have a simple
webView
class that it is made of the an activity in my application. 我有一个简单的
webView
类,它由我的应用程序中的一个活动组成。
You would have to put IntentFilter in manifiest 您必须将IntentFilter放入清单中
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http"/>
</intent-filter>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.