Monday 14 November 2011

get lognitute 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