Android Question How to check if GPS is LOCKED to position i.e. has signal?

adrianstanescu85

Active Member
Licensed User
Longtime User
Hello

I'd like to ask how to check whether the GPS has a locked position, i.e. it has a signal and accordingly it did find a position? This is not checking if the GPS is enabled, that's easily done by GPS1.Enabled is false/true, but in order to have a locked signal the GPS surely is enabled.

By all means, when this happens, the gps_locationchanged is fired but I may loose the signal, still keep those Lat and Long coordinates but they're no longer available if I lost the signal in the mean while and I ran away. So... how to check when a signal is locked?

Thank you!
Adrian
 

adrianstanescu85

Active Member
Licensed User
Longtime User
Thank you! The GpsStatus returns a list of satellites, how can I use that to know if the gps position is determined or not?

Basically I need a boolean variable so that I may know when the GPS signal gets lost (for instance when entering a tunnel).
 
Upvote 0

adrianstanescu85

Active Member
Licensed User
Longtime User
How many satellites does it take to be UsedInFix when a certain location is transmitted? I figure no less than 3. If so, counting how many satellites are used could return a more accurate boolean GPSsignal value.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…