简体   繁体   English

如何在不使用GPS,加速度计的情况下检测设备是否静止

[英]How to detect device is stationary without using GPS, Accelerometer

Is their any way for deciding the device is stationary without using GPS and accelerometer. 他们是否可以通过任何方式确定设备是否处于静止状态,而无需使用GPS和加速度计。

I can use network updates from location manager. 我可以使用位置管理器中的网络更新。

I tried using 我尝试使用

 mLocManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 10, mLocListener);

Considering i will receive location updates only if device moves atleast 10 meters. 考虑到我仅在设备移动至少10米时才会收到位置更新。 So absence of network updates can say device position stationary. 因此,缺少网络更新可以说设备位置固定。

But this didnt seem to work properly. 但这似乎没有正常工作。 I even moved 200 meters or more i got no updates. 我什至移动了200米或以上,但没有任何更新。 Is their any way to make it work. 是他们使其工作的任何方式。 Or any other way. 或任何其他方式。

Thank You 谢谢

Any Help would be appreciated. 任何帮助,将不胜感激。

The network_provider depends hugely on how many cell towers are in your area. network_provider很大程度上取决于您所在地区的基站数量。 Using that method, accuracy can be as large as a few miles. 使用该方法,精度可能高达几英里。 This link mentions some alternatives like triangulating using what WiFi SSIDs are in range. 该链接提到了一些替代方法,例如使用范围内的WiFi SSID进行三角测量。 Hope this helps! 希望这可以帮助!

NETWORK_PROVIDER Location Accuracy Issue in Android NETWORK_PROVIDER Android中的位置准确性问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM