Wednesday 9 November 2011

get loagitute and latitute

 LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
   
   Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);

double longitude = location.getLongitude();
   double       latitude = location.getLatitude();

No comments:

Post a Comment