A data collection app that used LocationManager
directly was updated to use FusedLocationProviderApi
. With LocationManager
, most devices quickly report 5m accuracy or better when collecting location. With FusedLocationProviderApi
, the best accuracy ever reported is 10m.
I have just installed a location demo app and see the same behavior (https://github.com/will-quast/android-location-demo). In the Fused Location activity, if I only show GPS location, the accuracy changes as I get a better view of the sky and it can go down to 2m. If I only show fused, I get the same point as reported by LocationManager
. This makes sense -- I have Android set to use GPS only for location and priority is set to PRIORITY_HIGH_ACCURACY
so I expect the two points to always be the same. But the best accuracy ever displayed is 10m with the fused provider.
Why does the fused provider never report an accuracy less than 10m? Is this documented somewhere? Is there any way around it or should LocationManager
always be used when a sense of accuracy is needed?
FusedLocationProviderClient
is not currently an option because it requires an update to Google Play and this app is used in resource-constrained areas where a Google Play update is prohibitively large. It would still be useful to know whether it does report sub-10m accuracies. It also never reports an accuracy below 10m with Android settings set to use GPS only.
Edit 4/9 - Related questions:
FusedLocationProviderAPI
I get an accuracy of 10m. WithLocationManager
I get an accuracy of 2m. – BouillabaisseFusedLocationProvider
anymore, though. – Bouillabaisse