开发者

Get number of gps fix satellites?

开发者 https://www.devze.com 2023-04-03 22:18 出处:网络
I got the GPS_Location: double lo=gps_loc.getLongitude(); double la=gps_loc.getLatitude(); I got the Horizo开发者_开发问答ntal_Accuracy:

I got the GPS_Location:

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

I got the Horizo开发者_开发问答ntal_Accuracy:

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

I got the HDOP:

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

But I can't got the number of satellites.

How can I get the number of satellites have been used in my GPS localisation?


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

if you need further looking into the GPS Satellite Data you can iterate over the List of Satellites with getSatellites()

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

0

精彩评论

暂无评论...
验证码 换一张
取 消