简体   繁体   English

知道手机何时进入Android设备上建立

[英]Know when phone enters building on android device

I was wondering if there is a way for me to detect if the users device is being "obstructed" by a building or roof of some sort. 我想知道是否有办法让我检测用户设备是否被某种建筑物或屋顶“阻挡”。 Im developing a very precise location based app and its KEY that my users get alerted if something is wrong with there GPS or something is getting in the way. 我正在开发一个非常精确的基于位置的应用程序和它的KEY,如果有什么问题,我的用户会收到警报GPS或某些东西正在阻碍。 Physical object. 物理对象。

EDIT: The app ive created strictly takes snapshots too its not something thats constantly going. 编辑:我创建的应用程序也严格拍摄快照,而不是经常发生的事情。 Just a quick snapshot. 只是一个快照。

Not directly. 不是直接的。 You can try calling LocationManager.getGpsStatus and iterating over the list of satelites every so often and looking for a jump in signal to noise ratio since the last reading. 您可以尝试调用LocationManager.getGpsStatus并经常迭代卫星列表,并寻找自上次读数以来信噪比的跳跃。 Getting a working algorithm is going to take a good amount of work and testing on a variety of devices with different GPS chips. 获得一个可行的算法将需要在具有不同GPS芯片的各种设备上进行大量工作和测试。

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

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