I have a web app with a tool in it that uses google maps (the web tool, not the android one). On my computers web browser I test it and it works fine (gives a surprisingly accurate location, marked with a pin). However, when I try and use it in the webview within my app, it does not get a fix on my location or place a pin. Shortly after the map loads, I get the "Location set by GPS" notification (Android 3.0 XOOM), however closing the map tool and reopening it does not change the result.
I have setGeoLocation(true) and both fine and coarse permissions are enabled in the manifest. I do not need the location to updated constantly, I just need it to update once (in the future I may wish to have it update every n minutes or something). I don't want to have the GPS running constantly, as that would be a battery drain. I have been disappointed by the lack of a supplied sample, and all of the tutorials I can find don't (appear) to apply to a webview. Note: I do not currently have access to the source code for the webapp, however I do know that it uses this: ( http://code.google.com/p/geo-location-javascript/wiki/SupportedPlatforms ) I could potentially obtain the relevant code, however as the problem does not exist on a computer browser, or on the stock browser, I know that the issue is with my app. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en