Geolocation in Browser works in 1.6 (Gears) but not in 2.0 (HTML5/W3C)

I tested this both in the emulator and with real devices.

I created this little geolocation experiment site It works great on my Android 1.6 (Magic, I/O Phone): it prompts the user to share, returns latitude and longitude, and is snappy. Android 1.6 uses Gears for this.

I tried it on an up-to-date Droid and a 2.0 emulator image, and it detects the navigator.geolocation element (excellent!) and waits for the user to share.

However, no popup appears on the device and it cannot proceed. Any thoughts?

Asked by: Madaline489 | Posted: 25-01-2022

Answer 1

The phone in question was silently defaulting to the Dolphin browser, which doesn’t support geolocation.

I still can’t explain the emulator issue but for now. . . .

Answered by: Emma541 | Posted: 26-02-2022

Similar questions

geolocation - Android Camera Intent Geo-Tagging

We are utilizing the Intent.ACTION_IMAGE_CAPTURE for taking a new picture from within our app. However, we would like to force geo-tagging of the pictures. Is there a way to set the intent to do this or does it rely solely on the default Camera app's setting to "Store Location"? (Also, it would be nice if this worked for the ACTION_VIDEO_CAPTURE intent as wel...

Do I need to use a service like Skyhook if I want geolocation in my Android App over wi-fi?

Do I need to use a service like Skyhook if I want geolocation in my Android App over wi-fi or will it work out-of-the-box like with an iPhone?

html - Android: Using html5 to determine geolocation in webview with javascript api

I'm currently having an issue with geolocation in a webview. I have a webapp. I'm currently not using phonegap or any other mobile framework. I've been unsuccessful at getting the built-in html5 geolocation javascript api to work on an application that runs in a webview in an android app. The site works fine otherwise from the chrome browser on android 2.0+ (geolocation supported). I'm compiling against android api...

compass geolocation - Determining north using the android phone

I looked over SensorManager and was still unsure, how do I detect if the phone is looking at true north (or any other direction for that matter).

geolocation - How do I get the time when the Location has been updated in Android?

As you know we can get thast Last Known Location, but how do we get the time when that has changed?

geolocation - What is the simplest and most robust way to get the user's current location on Android?

The LocationManager API on Android seems like it's a bit of a pain to use for an application that only needs an occasional and rough approximation of the user's location. The app I'm working on isn't really a location app per se, but it does need to get the user's location in order to display a list of nearby businesses. It doesn't need to worry about if the user is moving around or anything like that...

geolocation - Map View errors when I used it for the second time in Android (Titanium)

I have records on the table list contains data that has latitude & longitude on the listing widow. When I click on each row, it passes to the detail window that display the mapview and its annotation of that record. I zoom in & out, moved to different area and I clicked "back" button to go back to the record list. Then, I selected on the different record to see the map on the detail window again, wh...

geolocation - Is it possible to find the location of another android phone?

I'm new to development for Android and I am curious if it is even possible to request and accurate location of another android device? For example, If I wanted to find where a friend is located and show it on my device in google maps.

geolocation - iOS/Android GPS battery draw?

I'm investigating the possiblity of writing an app for Android/iOS4/both that would use GPS in the background. I found the "Receiving Location Events in the Background" section of the iphone developer d...

java - Using Gears for Geolocation in Webview? (for 1.5 phones)

I was able to setup geolocation accessibility in my webview for any android phone running 2.0 and up easily. However I really need to get this feature working on 1.5 and 1.6 phones as well. From what i've read it seems like this feature used to be accomplished with "Gears" and apparently there is a way to use addJavascriptInterface to implement this. I can't seem to find any examples anywhere. I'm actually sup...

Still can't find your answer? Check out these communities...

Android Google Support | Android Community | Android Community (Facebook) | Android