1. Are you ready for the Galaxy S20? Here is everything we know so far!

Geolocation Service is not working on the Android Phone

Discussion in 'Android Lounge' started by malayroy, Aug 31, 2011.

  1. malayroy

    malayroy Lurker
    Thread Starter

    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
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Frisco

    Frisco =Luceat Lux Vestra=

    Welcome to the forums, Malayroy.

    Let's try the Android Lounge for that question. I've moved your post for you.
     
Loading...
Similar Threads - Geolocation Service working
  1. RodBarnes
    Replies:
    4
    Views:
    259
  2. godlovingman
    Replies:
    15
    Views:
    702
  3. eishiba
    Replies:
    7
    Views:
    646
  4. Lord Volvo
    Replies:
    4
    Views:
    807
  5. Argofy
    Replies:
    10
    Views:
    650
  6. SlimC83
    Replies:
    2
    Views:
    958
  7. Justin Raney
    Replies:
    1
    Views:
    497
  8. justamel
    Replies:
    3
    Views:
    1,103
  9. persistentone
    Replies:
    2
    Views:
    1,519
  10. DrAbst
    Replies:
    1
    Views:
    588

Share This Page

Loading...