How to detect whether GPS signal is weak or high?

后端 未结 2 1675
挽巷
挽巷 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: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

提交回复
热议问题