Search code examples
javaandroidlocationmanager

Fused Location Manager API Accuracy


I want to make an Android app that needs locations accurate to about 1m or less. Is the "Fused Location Manager API" good enough, or can GPS never be this accurate, regardless if fused with other Sensors? If so, does anybody know a way to get more accurate locations on a smartphone?

Thank you!


Solution

  • For Getting more accuracy in Android phones was not recommended due to battery/data consumption. If it not an issue means you can use below code

    Integer gpsFreqInMillis = 1000;
    Integer gpsFreqInDistance = 1;  // in meters
    
    locationManager.addGpsStatusListener(this);
    
    locationManager.requestLocationUpdates(gpsFreqInMillis, gpsFreqInDistance, criteria, this, null);