This is an example project about how to discover wifi p2p peer in android followed google android developer website(http://developer.android.com/training/connect-devices-wirelessly/wifi-direct.html).