Firefox for Android原生应用图标(地址栏) [英] Firefox for Android native app icon (address bar)

查看:122
本文介绍了Firefox for Android原生应用图标(地址栏)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近注意到Android的一半高度的Android出现在Firefox的地址栏右侧。



看起来这是一个指标一个本地应用程序可用于您正在查看的网站(StackExchange就是这样一个网站!) - 点击图标启动应用程序,并且参数似乎被传递以加载应用程序中的相同页面或执行适当的操作。



这是HTML标记的一部分,它提醒浏览器应用程序可用,或Android从应用程序安装时就知道了吗?



(实际上,当有应用程序可用时该图标是否显示,但未安装?)



谢谢,



FM



- 更新 -



我卸载了堆栈交换应用程序和图标从Firefox地址栏中消失,所以它看起来只有当应用程序已经安装在设备上时才显示图标。

解决方案例Android版的Firefox使用的是Android第一版本本身提供的功能,可以使用可以基于URI前缀,URI方案或MIME类型的Intent来启动第三方应用程序。这些第三方应用是定义他们支持的Intent的。

Firefox将第三方应用程序称为帮手应用程序。我最近在几个错误描述中发现了对这个表达式的引用,例如:
$ b



如果您有兴趣,它应该可以帮助您找到实际的执行方式。


I've recently noticed a little half height android appear to the right hand side of the address bar in Firefox for Android.

It seems this is an indicator that a native app is available for the website that you are viewing (StackExchange being one such site!) - tapping the icon launches the app and parameters seem to be passed to load the same page in the app or to do something appropriate.

Is this part of the HTML markup to alert the browser that an app is available or does Android 'just know' from when the app was installed?

(In fact, does the icon appear when there is an app is available but it is not installed?)

Thanks,

FM

-- Update --

I uninstalled the Stack Exchange App and the icon disappeared from the Firefox address bar so it seems the icon is only displayed when the app is already installed on the device.

解决方案

Firefox on Android is using a feature available natively on Android from the very first version, to launch third party applications with an Intent that can be based on URI prefix, URI scheme or MIME types. These 3rd party apps are the ones defining the Intent they support.

Firefox calls a third party application an helper app. I have found references to this expression in several bug descriptions recently, such as:

It should help you find the actual implementation, if you are interested.

这篇关于Firefox for Android原生应用图标(地址栏)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆