B4A Library Toggle on/off GPS in any Android version

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:
Code: Copy
AddPermission("android.permission.WRITE_SETTINGS")
AddPermission("android.permission.WRITE_SECURE_SETTINGS")

I hope this will be helpful for someone :)
 

Attachments

Last edited:
  • Like
Reactions: CGP
Dear mitobobo,
Thank you for this important library. Can you please post an example so that it becomes easier to use the library.
Thanks,
PS:Got it working on my rooted S2!!!
Thanks a lot!
 
Last edited:
Back
Top