获取GPS定位卫星的数目? [英] Get number of gps fix satellites?
本文介绍了获取GPS定位卫星的数目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我得到了GPS_Location:
I got the GPS_Location:
double lo=gps_loc.getLongitude();
double la=gps_loc.getLatitude();
我得到了Horizontal_Accuracy:
I got the Horizontal_Accuracy:
int horiAcc=(int)(gps_loc.getAccuracy());
我得到了HDOP:
I got the HDOP:
int hd= (int) (horiAcc/5);
但我不能得到卫星的数量。
But I can't got the number of satellites.
我怎样才能卫星的数量已在我的GPS定位被使用?
How can I get the number of satellites have been used in my GPS localisation?
推荐答案
看GpsStatus类
它有一个方法调用getMaxSatellites()
Look at the GpsStatus Class it has a method called getMaxSatellites()
如果您需要进一步寻找到的GPS卫星数据您可以通过卫星与getSatellites对列表进行迭代()
if you need further looking into the GPS Satellite Data you can iterate over the List of Satellites with getSatellites()
请参阅:
的http://developer.android.com/reference/android/location/GpsStatus.html#getMaxSatellites%28%29
这篇关于获取GPS定位卫星的数目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文