检查GPS信号 [英] Check GPS signal

查看:305
本文介绍了检查GPS信号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/2131638/how-to-detect-whether-gps-signal-is-weak-or-high\">How检测到的GPS信号是弱或高?

是否有任何可能的方式来知道GPS信号星期?
如在建筑物的用户那么GPS可以不发送数据。这就是为什么我要检查GPS信号的原因。

Is there any possible way to know that the GPS signal is week ? Such as the user in the building then the GPS may not send data. This is the reason why I want to check the GPS signal.

推荐答案

有没有做到这一点的具体途径。我通常遵循一个超时的方式在这里你可以等待约30-45秒得到修复,如果你没有得到该时间内修复,你可以推断出GPS定位不能的当前位置获得用户。

There is no specific way to do that. I usually follow a time-out approach where you can wait for about 30-45 seconds to get a fix and if you do not get a fix within that time, you can infer that the GPS fix cannot be obtained at the current location of the user.

在情况下,解决方法是可用的和你onLocationChanged()方法获取调用,你应该使用getAccuracy()和的getTime()的组合来接受修复和推断的信号强度。

In case the fix is available and your onLocationChanged() method is getting called, you should use the combination of getAccuracy() and getTime() to accept the fix and infer about the strength of the signal.

这篇关于检查GPS信号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆