how to find wifi signal direction of another device in android?

柔情痞子 提交于 2019-12-19 18:24:40

问题


I am using my android phone as Access Point. Now I want to find the distance and direction of the wifi devices connected with my phone.

Please help me through suitable example and code.

Thanks in advance.


回答1:


I downloaded Wifi Radar that you mentioned and tried it. There's an important step there - it asks you to rotate on the spot for a bit while holding the device to your body.

So my guess is that it uses the internal compass to figure out which direction you're pointing to, and then measures the signal. When the signal gets stronger, it figures that you're pointing toward the AP.

Since the app asks you to hold your device to your body, it's trying to use you as a shield, so if you're facing away from the AP, your body will weaken the signal.



来源:https://stackoverflow.com/questions/6004530/how-to-find-wifi-signal-direction-of-another-device-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!