Dear,
With this library, you can turn GPS on/off in ANY Android version(even KitKat) provided your app is a system-app (therefore, root is needed).
Don't forget to declare these two permissions in the Manifest:
I hope this will be helpful for someone
With this library, you can turn GPS on/off in ANY Android version(even KitKat) provided your app is a system-app (therefore, root is needed).
Don't forget to declare these two permissions in the Manifest:
B4X:
AddPermission("android.permission.WRITE_SETTINGS")
AddPermission("android.permission.WRITE_SECURE_SETTINGS")
I hope this will be helpful for someone
Attachments
Last edited: