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

I hope this will be helpful for someone :)
 

Attachments

  • GPSToggle.zip
    1.6 KB · Views: 415
Last edited:
  • Like
Reactions: CGP

rbghongade

Active Member
Licensed User
Longtime User
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:
Top