Skip to content Skip to sidebar Skip to footer

Creating P2p Connections With Wi-fi On Android

So I'm trying to create p2p connection work on android. And I am stuck on following part. code below is what's provided on API and it does not make sense to me. I feel like there m

Solution 1:

I have a feeling you imported the wrong Channel. You may have imported

java.nio.Channels.Channel

when the one you want is

android.net.wifi.p2p.WifiP2pManager.Channel

hope this helps.

Solution 2:

I used alljoin in my project. This api very successfully communicate two devices.

Solution 3:

The type you are looking for is:

WifiP2pManager manager;

Post a Comment for "Creating P2p Connections With Wi-fi On Android"