PRIORITY_LOW_POWER vs PRIORITY_BALANCED_POWER_ACCURACY for google play service v2

I am wondering what platinum location can be used in combination with gps + wifi? what is the difference in terms of the provider (does any of them use gps)? from what i see in the documentation, the difference is only the distance

I previously worked with the LocationManager and used NETWORK_PROVIDER and GPS_PROVIDER together to get a combination of the two providers.

+10
android android-location google-play-services
source share
1 answer

New merge providers use a slightly different approach than previous methods. Developers now choose how much battery energy is used to calculate the location, and not what components of the device are used to calculate it. It uses any available combination of GPS, Wi-Fi, mobile networks and built-in sensors to calculate location.

LocationRequest priority settings now:

  • PRIORITY_NO_POWER (passively listens for location updates from other clients)
  • PRIORITY_LOW_POWER (~ 10 km "urban" accuracy)
  • PRIORITY_BALANCED_POWER_ACCURACY (accuracy ~ 100 m "block")
  • PRIORITY_HIGH_ACCURACY (most accurate due to battery life)

Google describes the LocationRequest class here: https://developers.google.com/android/reference/com/google/android/gms/location/LocationRequest

+26
source share

All Articles