Provides classes to create peer-to-peer (P2P) connections with Wi-Fi Direct.
Using these APIs, you can discover and connect to other devices when each device supports Wi-Fi Direct, then communicate over a speedy connection across distances much longer than a Bluetooth connection. The primary class you need to work with is WifiP2pManager, which you can acquire by calling getSystemService(WIFI_P2P_SERVICE). The WifiP2pManager includes APIs that allow you to:
• Initialize your application for P2P connections by calling initialize()
• Discover nearby devices by calling discoverPeers()
• Start a P2P connection by calling connect()
• And more
Several other interfaces and classes are necessary as well, such as: