m.google.com somehow requests the current location when loaded in Android's browser.
I want to do the same thing from a web page being loaded into a WebView in my own application. Is the only way to go about this开发者_运维百科 with WebView.addJavascriptInterface()
, or is there already a javascript interface available for webapps to use?
It's done via HTML5.
Lookup here the Javascript: http://dev.w3.org/geo/api/spec-source.html
精彩评论