I am trying to enable/disable (toggle) GPS programmatically in my app via a button click, but it is not working. Please help. My target devices are not rooted.
Here\'s t
I am trying to enable/disable (toggle) GPS programmatically in my app via a button click
This is not possible on modern versions of Android, for obvious privacy reasons.
but it is not working
There is no android.location.GPS_ENABLED_CHANGE
action in the Android SDK. There is one used internally, but it merely announces a state change -- it does not actually change the state itself.