4

Got this from How much accuracy does PRIORITY_BALANCED_POWER_ACCURACY give?

The HIGH_ACCURACY mode use all location providers, However, it prioritize the location providers and include GPS along with location providers. The location accuracy is approximately within 10 meters of range.

The BALANCED_POWER mode exclude GPS for its list of location providers, and use the other providers based including cell towers, wifi etc. In this case, the location accuracy is approximately 40 meters.

The NO_POWER do not use any location provider, instead it is a passive mode of getting location from other apps. The accuracy could be a mile or more. It is solely based on the locations that are fetch by other applications recently.

Is it true that PRIORITY_BALANCED_POWER_ACCURACY excludes that GPS provider altogether? I've always been under the assumption that it still uses the GPS provider but only when the network provider was not available. Any clarification would be appreciated.

Community
  • 1
  • 1
Huy T
  • 1,273
  • 1
  • 11
  • 21

2 Answers2

12

In my experience, the PRIORITY_BALANCED_POWER_ACCURACY uses GPS only when accessing location updates from any other provider is not possible. When I was using my application, a scenarios when cell tower was lost and no wifi available, the phone started taking location updates from the GPS. As far as I remember, I did not open the maps application or any other GPS specific application on the phone.

Shadman Anwer
  • 1,706
  • 3
  • 15
  • 17
  • this is the correct answer, I did a test run with no wifi & cellular and was able to get location fixes while on the road so it definitely used GPS receiver even though my priority was set to PRIORITY_BALANCED_POWER_ACCURACY – 2cupsOfTech Apr 08 '17 at 01:50
  • On my device (Pixel running Android 7.1 Play Services 10.2.98) PRIORITY_BALANCED_POWER_ACCURACY does not turns on the GPS where PRIORITY_HIGH_ACCURACY does. Tested in airplane mode with GPS enabled after reboot to remove location data. I wouldn't be surprised if this varies, but the docs are correct for my setup. – paul May 17 '17 at 05:14
7

After looking around a bit, it looks like PRIORITY_BALANCED_POWER_ACCURACY does indeed exclude GPS altogether.

Google Play Services for Android. Location client not update location if wifi disabled

Community
  • 1
  • 1
Huy T
  • 1,273
  • 1
  • 11
  • 21
  • 2
    This is wrong. You can easily test this by changing the Location setting on the device to GPS only. You will see that it will then use GPS, since that is the only provider that is possible to be used. – Daniel Nugent Oct 26 '17 at 18:01