1

I'm using new Location API (FusedLocationProviderApi) and get confuse about it.

I intend to use LocationRequest.PRIORITY_HIGH_ACCURACY. But, on device, if user choose the location mode is save battery (network only). -> What is the bahevior for my app?

  • Does it update with hight accuracy (with internet, gps..) OR
  • Does it will be limited follow the setting of user?

Please correct me if i missunderstand anything.

Lạng Hoàng
  • 1,790
  • 3
  • 17
  • 32
  • The permission you set in the AndroidManifest.xml has more of an effect than anything you set in the code. If you have `ACCESS_FINE_LOCATION` in the manifest, you can still get very accurate results from just Network Location. Take a look at this answer exploring the functionality of different settings, all tests done with the device set to Battery Saving for Location Mode: http://stackoverflow.com/questions/30191047/access-coarse-location-permission-gives-a-cell-tower-precision-on-android/30315009#30315009 – Daniel Nugent Aug 20 '15 at 05:50

0 Answers0