How to turn off “Use wireless networks” in Location and security in Android settings programatically?
-
06-06-2021 - |
Question
I made an app which is need wireless networks for Location Manager. If the user starts the app, a dialog will shown saying "Please turn on wireless networks for better location place"
If the user decides to turn it on, it will turned on forever, i mean it wont turn off if the user exits my app, and this thing is not a battery saver if you know what i mean.
How can i turn it off programatically on onStop() for example?
This option is located in Settings > Location and security > Use wireless networks (on/off)
Solution
How can i turn it off programatically on onStop() for example?
You cannot change this programmatically.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow