I added a gps status listener to my location manager in order see when I
get the first fix.
When I receive the GPS_EVENT_FIRST_FIX I then loop through all the
satellites, but why is none of them used in the fix? (usedInFix()).
My log says 'false' for all satellites?
final class GpsStatusListener implements GpsStatus.Listener {
public void onGpsStatusChanged(int i) {
if (i==GpsStatus.GPS_EVENT_FIRST_FIX) {
Log.d(APP, "gpsx.fixed.");
for (GpsSatellite
sat:locationManager.getGpsStatus(null).getSatellites()) {
Log.d(APP, "gpsx.GpsStatus.Sat.fixed: " + sat.usedInFix());
}
}
}
}
Log output:
gpsx.fixed.
gpsx.GpsStatus.Sat.fixed: false
gpsx.GpsStatus.Sat.fixed: false
gpsx.GpsStatus.Sat.fixed: false
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en