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

Osmani picture Osmani · May 14, 2011 · Viewed 13.4k times · Source

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.

Answer

EboMike picture EboMike · May 16, 2011

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.