Artigala Member Licensed User Longtime User Mar 24, 2016 #1 Dear Community, Can we have a way to know if GPS is already started ? (I don't talk about enabled). I would like to start GPS only if not already started. Thank you
Dear Community, Can we have a way to know if GPS is already started ? (I don't talk about enabled). I would like to start GPS only if not already started. Thank you
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2016 #2 You can track it yourself. It is only your code that can start it. B4X: Sub StartGPS If GpsWasAlreadyStarted = True Then Return GpsWasAlreadyStarted = True 'process global variable Gps.Start(...) End Sub Upvote 0
You can track it yourself. It is only your code that can start it. B4X: Sub StartGPS If GpsWasAlreadyStarted = True Then Return GpsWasAlreadyStarted = True 'process global variable Gps.Start(...) End Sub
Artigala Member Licensed User Longtime User Mar 24, 2016 #3 I had a same idea. Thank you Erel. Upvote 0