Android – number of GPS repair satellites acquired?
•
Android
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 do I get the number of satellites used in my GPS positioning?
resolvent:
Look at the gpsstatus class, which has a method called getmaxsatellites ()
If you need to view the GPS satellite data further, you can use getsatellites () to iterate over the satellite list
Invalid Sign
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码