【问题标题】:Get number of gps fix satellites?获取 GPS 修复卫星的数量?
【发布时间】:2011-09-09 09:47:26
【问题描述】:

我得到了 GPS_Location:

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

我得到了 Horizo​​ntal_Accuracy:

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

我得到了 HDOP:

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

但我不知道卫星的数量。

我如何才能获得在我的 GPS 定位中使用的卫星数量?

【问题讨论】:

    标签: android gps lg


    【解决方案1】:

    查看 GpsStatus 类 它有一个名为 getMaxSatellites() 的方法

    如果您需要进一步查看 GPS 卫星数据,您可以使用 getSatellites() 遍历卫星列表

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-04
      相关资源
      最近更新 更多