Gps - Android - how to get location by accuracy

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

I don t care about GPS, wifi, cell, network, coarse, fine, etc.

All I want to do is get the location X meters accurate. For example, 100 meters or 5 meters accurate.

If I want a high accuracy location (small x), Android would know to use the GPS. If I wanted a medium accuracy, Android would try Wifi/cell and use the GPS if needed.

Is there a way to do it without all the nitty-gritty details.

  Looking for some method like    locationManager.getLocation(accuracy, callback) and Android would do the rest.

https://developer.android.com/reference/android/location/Criteria.html https://developer.android.com/reference/android/location/Criteria.html

Answers

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/38308959/android-how-to-get-location-by-accuracy

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils