简体   繁体   English

当我在浏览器中并单击链接时,我想在操作列表中查看我的应用程序,然后使用我的应用程序转到该链接

[英]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.

相关问题 当我单击Android中的任何链接时,如何使我的应用程序显示在浏览器列表中? - How to make my app show up in the list of browsers when I click on any link in Android? 当我单击我的应用程序上的链接时,如何将我重定向到另一个应用程序? - How may I be redirected to another app when i click a link on my app? 当我单击AppWidget时如何去我的App - How can i go to my App when i click on AppWidget 我想在设备上创建指向应用程序的链接,但无法正常工作 - I want to create a link to an app on my device but its not working 如何通过我的应用程序继续执行Internet链接操作? - How Can I Continue Internet Link Action With My App? 当我从对话框中选择浏览器甚至应用程序安装后,应用程序链接android没有打开我的应用程序 - Apps Link android is not opening to my app when i select browser from the dialog even app is installed 使用 share 2.0.0 package 我想分享我的应用程序的链接,但我还没有发布我的应用程序来玩商店 - Using share 2.0.0 package i want to share my app's link but i have not published my app to play store yet 我正在尝试从我的 HomeActivity 扩展菜单,但是当我单击列表中的任何项目时应用程序崩溃 - I am trying to inflate a menu from my HomeActivity but the app crashes when i click any of the items on the list 我可以将Skype与我的Android应用程序链接吗? - Can I link Skype with my Android App? 当我尝试打开深层链接时,我的应用没有显示 - My app not showing up when I try open the deep link
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM