Friday 6 September 2019

What's the replacement for writing to Android's LOCATION_MODE secure setting?

Android contains the LOCATION_MODE secure setting for controlling whether location is enabled via GPS, network, or both. This setting was deprecated in API 28. The documentation lists replacements for reading this value and being notified when it's changed, but is silent on a replacement for writing to this value. If I'm writing an app that wants to change location sources, what's the new non-deprecated way to do it?



from What's the replacement for writing to Android's LOCATION_MODE secure setting?

No comments:

Post a Comment