android - 获取 GPS 固定卫星的数量?

标签 android gps lg

我得到了 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 定位中使用的卫星数量?

最佳答案

查看 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/

相关文章:

android - 位图分配所花费的时间

android - 如何重现 Android 市场应用程序更新时发生的过程?

gps - 如何进行 GPS 后处理

安卓 GPS 超时

Android Support v4 版本 22.2.0 无法解析 FragmentActivity

Android JobScheduler - 无法创建持久作业

iphone - 非 3G iPhone 的三角 GPS 准确度如何?

android - "No Connected Devices",试图将我的 LG 连接到我的 Ubuntu 机器

android - YouTube API for Android的java.lang.ClassCastException

android - 在 LG Optimus S 中找不到经纬度