Wi-Fi Packet Sniffer

Seeing this article on the Coding4Fun site got me interested in working on an app that would allow me to detect nearby Wi-Fi networks and sniff the packets transmitting on that network. I am not really interested hacking per se, but rather just curious.