Android Question turn on gps automatically in B4A

mr.A2

New Member
hi
is there a way to turn on gps automatically without going to location setting?
i mean turn the gps on using a button in the app
 

emexes

Expert
Licensed User
I think no. Google is a bit touchy about apps that non-explicitly gather users' personal information.

Check the first code block of this post:

https://www.b4x.com/android/forum/threads/gps-tutorial.6592/

The post is almost a decade old, but: I just double-checked that the LocationSettingsIntent still works (yes) and I used the RuntimePermissions CheckAndRequest with GPS last week, so that's working too.
 
Last edited:
Upvote 0
Top