How to turn off programmatically in the "location service" menu - access to my GPS location. You are about to uncheck the box (CheckBox). Android version system 4.3
You can not programatically en- or disable this setting. It is in the decision of the user to do so (or not).
You can point the User to the right settingsdialog... I think a similar call is in the GPS tutorial
B4X:
If Starter.GPS1.GPSEnabled = False Then
ToastMessageShow("Please enable the GPS device.", True)
StartActivity(Starter.GPS1.LocationSettingsIntent) 'Will open the relevant settings screen.
Else
Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION)
End If