Page 1 of 1
GPS Status Android
Posted: Fri Oct 28, 2016 3:48 pm
by LeonardoPlacanica
Guys can you tell me the better way to check the status of GPS for an android application? I want to make a control to check if it is turned off or on.
Im debugging from an Galaxy S4 mini with Android 4.4.2, thank you.
Re: GPS Status Android
Posted: Mon Oct 31, 2016 6:04 pm
by MaxV
Maybe this:
Code: Select all
if mobileSensorAvailable("location") is "true" then
answer "GPS is ON!!!"
end if
See
http://livecode.wikia.com/wiki/MobileSensorAvailable
Re: GPS Status Android
Posted: Tue Nov 01, 2016 2:06 pm
by LeonardoPlacanica
This function return me true every time (GPS on and even with GPS off), I think that this function return true if the GPS is physically available in the device not if it's on or off.
Re: GPS Status Android
Posted: Wed Nov 02, 2016 9:52 am
by MaxV