开发者

How to detect whether GPS signal is weak or high?

开发者 https://www.devze.com 2022-12-17 06:02 出处:网络
How to detect GPS signal strength such as lo开发者_JS百科w (weak) or high ? is there an API class ?

How to detect GPS signal strength such as lo开发者_JS百科w (weak) or high ?

is there an API class ?

Thanks in advance.


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消