Android Question Turn GPS On and Off

Jonathan Rigley

Member
Licensed User
Longtime User
Hi,

Im struggling to turn the GPS on and off, I have tried the Toggle Library and TurnGPS Library but the GPS remains off. Can anyone suggest another way?

Im using a Galaxy S5

B4X:
Dim oTurnGPS As TurnGPS
oTurnGPS.Initialize
oTurnGPS.turnGPSOn

Dim oToggle As Toggle
oToggle.Initialize
oToggle.TurnGPSOn

Many thanks
Jonathan
 
Top