我拿到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定位中使用了多少颗卫星?
发布于 2011-09-09 17:50:34
看看GpsStatus类,它有一个名为getMaxSatellites()的方法。
如果需要进一步查看GPS卫星数据,可以使用getSatellites()遍历卫星列表。
请参阅:http://developer.android.com/reference/android/location/GpsStatus.html#getMaxSatellites%28%29
https://stackoverflow.com/questions/7359823
复制相似问题