guys i am able to get the current location longitude and Latitude using the below code. I have two buttons Start walking and Stop Walking.
Start walking and Stop Walking.
Onclick of
You can calculate distance between two geo locations with distanceTo() function Location destination =new Location("gps"); destination.setLatitude(lat); destination.setLongitude(lng); float dist=user_location.distanceTo(destination);
Location destination =new Location("gps");
destination.setLatitude(lat);
destination.setLongitude(lng);
float dist=user_location.distanceTo(destination);