How to detect whether GPS signal is weak or high?

后端 未结 2 1676
挽巷
挽巷 2021-01-05 09:09

How to detect GPS signal strength such as low (weak) or high ?

is there an API class ?

Thanks in advance.

相关标签:
2条回答
  • 2021-01-05 09:24

    The getAccuracy() method of the Location object returned by onLocationChanged provides a good indication of how good the "fix" is.

    0 讨论(0)
  • 2021-01-05 09:31
    GpsStatus. getSatellites();
    //for each of those do 
    GpsSatelite. getSnr();
    //that ruturns the signal to noise ratio
    //use with
    GpsStatus.Listener
    

    Heres the api docs: Location manager - GpsStatus - GpsSatelite

    0 讨论(0)
提交回复
热议问题