sl4a
sl4a copied to clipboard
Turn location setting on and off programmatically
please help me turn on gps setting on and off without bothering the user
I don't know the method to enable/disable GPS, I googled some keywords to know it but I could not find solutions without 'bothering the user'.
do you have a solution where,the user cant tap a single dialog window and thereby turning the location on or off?
The program "Automate" can do it automatically ("Location provider set state" block), but it is not open source and requires some "special" permissions (android.permission.WRITE_SECURE_SETTINGS
, which must be set over adb).
For the user way, just open the location settings page.