How to detect whether GPS signal is weak or high?
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.
精彩评论