我可以从Android浏览器的JavaScript获取哪些信息? [英] What information can I get from the android browser JavaScript?

查看:176
本文介绍了我可以从Android浏览器的JavaScript获取哪些信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以在浏览器中得到屏幕宽度/高度,我可以得到有关该设备的任何其他信息?设备名称,操作系统,运营商,等?

I know I can get screen width/height in a browser, can I get any other information about the device? Device name, OS, carrier, etc?

推荐答案

这好像你提供的唯一额外的资源与屏幕密度和分辨率的事:的 http://developer.android.com/guide/webapps/index.html 。但是,如果你打算在 的WebView显示此页 ,您可以利用Java的Java脚本桥接访问可用的标准Java API的任何信息(或非标准的,如果你想获得创造性和使用反射;-))

It seems as though the only additional resources you're provided with have to do with screen density and resolution: http://developer.android.com/guide/webapps/index.html. However, if you are going to display this page in a WebView, you can utilize the Java-Javascript bridge to access any information available to the standard Java API (or non standard if you want to get creative and use reflection ;-) )

这篇关于我可以从Android浏览器的JavaScript获取哪些信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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