• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Geolocation Service is not working on the Android Phone

malayroy

Lurker
In the client Andriod mobile geolocation service is not working.

The mobile devices are
HTC Droid Eris
droid X2 by Motorola

The two have following
Operating device: Android
Carrier: Verizon Wireless

I have created a mobile website where a page collects the current latitude and longitude. The javascript code for this is :-
if (navigator.geolocation) {
browserSupportFlag = true;

navigator.geolocation.getCurrentPosition(function(position) {
initialLocation = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
//SetLatitude_Longitude(position.coords.latitude, position.coords.longitude)
//map.setCenter(initialLocation);
},
function() {
handleNoGeolocation(browserSupportFlag);
}
,
{ enableHighAccuracy: true }
);
// Try Google Gears Geolocation
}

But position.coords.latitude does not not reply as expected.

It is working fine to iphone and Andriod 2.1

Thanks& regards
Malay
 
Welcome to the forums, Malayroy.

Let's try the Android Lounge for that question. I've moved your post for you.
 
Back
Top Bottom