How to measure GPS signal strength on Android?

后端 未结 3 1184
梦谈多话
梦谈多话 2020-12-01 15:10

Question is as simple as the title: How to measure GPS signal strength?

3条回答
  •  粉色の甜心
    2020-12-01 15:50

    Are you sure you mean signal strength vs. accuracy? What good is the signal strength? Since the GPS position is determined via many satellites, you don't have "one" signal strength.

    So assuming that you really mean signal strength, you can get the GpsStatus via LocationManager.getGpsStatus(), and that gives you a list of satellites via getSatellites()', and each one of those has a signal-to-noise ratio (getSnr()).

    Assuming you mean accuracy, try Location.getAccuracy().

提交回复
热议问题