Android Question GPS in App permissions

Tomas Petrus

Active Member
Licensed User
Longtime User
Hi,

I have App with GPS. App can't work without It. I am using this code to check if It is allowed for device.

B4X:
Phone1.GetSettings("location_providers_allowed")

Is there any way how to check It for one App? There is function for turn It off in app permissions (Android 6.0.1)

Thanks
 

DonManfred

Expert
Licensed User
Longtime User
There is function for turn It off in app permissions (Android 6.0.1)
If you target Api 23+ you need to USE the runtimepermissions. That´s how Android 6+ is designed. You can not shut it off. In a very long term you can expect that all new apps will use runtimepermissions.

All you can do is using the runtimepermissions lib or target your app to a Api below 23.
 
Upvote 0
Top