<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>28 Dec 2014 19:10:00 Z</lastBuildDate><pubDate>28 Dec 2014 19:10:00 Z</pubDate><description>Hi,&#13;
&#13;
I need to check if GPS is working on a device, and ask the user to turn it on if it isn't.&#13;
&#13;
I have tried methods using example code from PC Soft, as below. I have turned off GPS and Location Services on my device, but I don't get the messages. At present the only way I can check if a position has been located is to see if longitude &lt;&gt;0.&#13;
&#13;
Any solutions please? I have installed the GPS example, turned off the location and that doesn't recognise the GPS is not enabled either.&#13;
&#13;
Thanks&#13;
&#13;
Pete&#13;
&#13;
&#13;
&#13;
// check 1&#13;
// Checks the status of the GPS provider&#13;
IF GPSStatus() = gpsDisabled THEN&#13;
Info("The geo-localization is not enabled.")&#13;
END&#13;
&#13;
&#13;
&#13;
// Check 2&#13;
// Is the GPS enabled?&#13;
IF GPSStatus() &lt;&gt; gpsEnabled THEN&#13;
Error(“The GPS will not operate.”,“Enable it to access this application.”)&#13;
END&#13;
&#13;
&#13;
&#13;
//Check 3&#13;
IF GPSStatus() = gpsUnavailable THEN&#13;
Info(" The geo-localization is not available.")&#13;
END</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49617-19-android-gpsenabled/read.awp</link><title>WM 19 Android - gpsEnabled</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
