0

Is there a way to get the accuracy of the fix from MyLocationOverlay? It obviously knows how accurate it is since it draws the circle of the area of how accurate it is. Is there away to get this value?

Thanks

user1154920
  • 465
  • 1
  • 6
  • 21

2 Answers2

0

Code from my location listener in one of my apps...

      public void onLocationChanged(Location location) {
        currentLatitudeE6 = (int) (location.getLatitude() * 1E6);
        currentLongitudeE6 = (int) (location.getLongitude() * 1E6);
        currentAccuracy = location.getAccuracy();
        hasCurrentPosition = true;
        gpsMessage = "GPS Tracking";
        updateMap();
    }
Howard Hodson
  • 943
  • 7
  • 17
0

Implement Location Listener by locationManager.requestLocationUpdates method, check following link:

http://hejp.co.uk/android/android-gps-example/

jeet
  • 29,001
  • 6
  • 52
  • 53