Get the number of GPS fixes?

I got GPS_Location:

double lo=gps_loc.getLongitude(); double la=gps_loc.getLatitude(); 

I got Horizontal_Accuracy:

 int horiAcc=(int)(gps_loc.getAccuracy()); 

I got HDOP:

 int hd= (int) (horiAcc/5); 

But I can’t get the number of satellites.

How can I get the number of satellites that were used in my GPS location?

+4
source share
1 answer

Look at the GpsStatus class, it has a method called getMaxSatellites ()

if you need to further study satellite GPS data, you can iterate over the list of satellites using getSatellites ()

see: http://developer.android.com/reference/android/location/GpsStatus.html#getMaxSatellites%28%29

+3
source

All Articles