I've seen references to a Wi-Fi Direct demo app on developer.android.com but I don't know how to locate and/or import it. Most of the Android tutorials are straight-forward and I can download and add the project as existing code (for example Network Service Discovery), but I'm not having any luck with Wi-Fi Direct.
This doesn't necessarily have to be the stock Wi-Fi Direct demo (assuming one exists). I just want something I can pull into ADT so I have some example source code. (I'm aware there are code snippets on the Wi-Fi Direct page I linked but I'm looking for a known-functional project, not pieces.)
For reference I'm running Android Developer Tools Build: v21.1.0-569685 and I have two phones running Android version 4.2.x.
use sdk manager to download samples for any api above 14 . In that you shall find a wifidirectdemo sample app which shall help you get aquainted with the basic of wifi direct in android