Sep 14, 2014 Replies: 2 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 GPSToggle.zip GPSToggle.zip 1.6 KB · Views: 772 Last edited: Sep 15, 2014 Click to expand...
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
Erel B4X founder Staff member Licensed User Longtime User Sep 15, 2014 #2 Thank you for sharing. Just to clarify - on non rooted phones it is not possible to make your app a system app.
Thank you for sharing. Just to clarify - on non rooted phones it is not possible to make your app a system app.
rbghongade Well-Known Member Licensed User Longtime User Sep 30, 2014 #3 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
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!