B4A Library Toggle on/off GPS in any Android version

Discussion in 'Additional libraries, classes and official updates' started by mitobobo, Sep 14, 2014.

Similar threads

B4A Tutorial Integrating Firebase Services
B4A Library DJI Drones
B4A Library Android Things
B4A Tutorial Version safe APK installation
B4A Tutorial Camera2 - Still images and videos
B4A Tutorial GPS tutorial
  1. mitobobo

    mitobobo Member Licensed User

    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:
    AddPermission("android.permission.WRITE_SETTINGS")
    AddPermission(
    "android.permission.WRITE_SECURE_SETTINGS")
    I hope this will be helpful for someone :)
     

    Attached Files:

    Last edited: Sep 15, 2014
    CGP likes this.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Thank you for sharing. Just to clarify - on non rooted phones it is not possible to make your app a system app.
     
    mitobobo likes this.
  3. rbghongade

    rbghongade Active Member Licensed 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: Sep 30, 2014
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice