Use WebView to show the map:
1.webView.getSettings().setJavaScriptEnabled(true);
Open the JavaScript of the web.
2.webView.getSettings().setGeolocationEnabled(true);
Open the geolocation for the web to get location through Javascript
PS:Use LocationManager to get the location from network or GPS.
Ref:
More info about Webview
沒有留言:
張貼留言