我得到了 GPS_Location:
double lo=gps_loc.getLongitude();
double la=gps_loc.getLatitude();
我得到了 Horizontal_Accuracy:
int horiAcc=(int)(gps_loc.getAccuracy());
我得到了 HDOP:
int hd= (int) (horiAcc/5);
但是我无法得到卫星的数量。
如何获取我的 GPS 定位中使用的卫星数量?
最佳答案
查看 GpsStatus 类 它有一个名为 getMaxSatellites() 的方法
如果您需要进一步查看 GPS 卫星数据,您可以使用 getSatellites() 遍历卫星列表
见: http://developer.android.com/reference/android/location/GpsStatus.html#getMaxSatellites%28%29
关于android - 获取 GPS 固定卫星的数量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7359823/