Questions tagged [wifip2p]

Wi-Fi peer-to-peer (WiFiP2p) is an Android framework that complies with the Wi-Fi Alliance's Wi-Fi Direct™ certification program. It allows Android 4.0 (API level 14) or later devices with the appropriate hardware to connect directly to each other via Wi-Fi without an intermediate access point.

326 questions
31
votes
2 answers

Wifi P2P service discovery works intermittently

Wifi P2P service discovery is not behaving as expected. I am seeing intermittent issues where the DNSSD listeners are not called always and hence I have no clue of nearby devices running the same app. I am using the following two APIs - one to…
Soumya Das
  • 1,635
  • 2
  • 19
  • 28
16
votes
3 answers

Difference between Wifi aware and Wifi P2P on Android?

What is the main difference between the WiFi aware and WiFi P2P technologies? Using WiFi P2P you can establish a connection between two or more nearby devices without the need of common network. But the android docs spec also that Wi-Fi Aware…
Themelis
  • 4,048
  • 2
  • 21
  • 45
16
votes
4 answers

Wifi-Direct always disconnects after thirty minutes

I am creating a WifiP2pGroup with WifiP2pManager.connect(). This works fine but the group is always disbanded after thirty minutes, no matter whether data is being transferred or not. Does anyone know why this happens, or if it can be prevented? I…
joe_deniable
  • 2,562
  • 3
  • 28
  • 38
16
votes
1 answer

How to be notified when a peer is no longer available in the Wi-Fi Direct range?

I am developing an Android application based on the use of Wifi Direct API. I have registered in my Activity a BroadcastReceiver in order to be notified about the following Wifi Direct events: WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION…
11
votes
4 answers

How to auto-accept Wi-Fi Direct connection requests in Android

I have 2 Android devices using WiFi Direct. On one device I can get information about the other device using the WifiP2pManager class, and request a connection to the other device. However when I request a connection, the other device pops up a…
David Kethel
  • 2,440
  • 9
  • 29
  • 49
10
votes
3 answers

difference between sharing files using wifi direct and using wifi hotspot

Sharing files between two devices using wifi can be done by:using wifi direct creating a hotspot on one device and connecting other device to it what is the basic difference between these two methods I mean in the both the options one device serves…
Gaurav Gupta
  • 1,929
  • 4
  • 21
  • 40
10
votes
3 answers

How change the device name in WiFi direct p2p?

Is it possibile to change the device name of WiFi direct through the code? I've tried to: private WifiP2pDevice wDevice; wDevice.deviceName = "newName"; But, obviously it doesn't work. Any idea?!
user3809345
  • 131
  • 2
  • 8
8
votes
1 answer

Why does WifiP2pService remove my Wifi Direct group?

I have an app that runs on 2 phones and allows the user to connect from one to the other using WifiP2p (WiFi Direct). On most phones, it works. Both phones go into peer discovery, they discover each other, one initiates a connection, and the other…
LarsH
  • 27,481
  • 8
  • 94
  • 152
8
votes
2 answers

WiFi-Direct P2P Service Discovery with Windows 10 and Android - possible?

I'm writing a mobile app that will be a remote control for a PC application. What I want to do is couple them using WiFi Direct. I read about the P2P Service Discovery feature, that allows me to look only straight for devices running a certain…
8
votes
4 answers

How do i get a Peer-to-peer WiFi service discovery to work?

I'm trying to build a server-client architecture using two Android devices with a peer-to-peer WiFi connection. I've got a clear distinction between client and server, so I'm trying to prune out unnecessary code. Using directions from…
Hounshell
  • 5,321
  • 4
  • 34
  • 51
8
votes
6 answers

Wi-Fi Direct and "normal" Wi-Fi - Different MAC?

I'm currently trying to connect two phones which know each other's MAC address via Wi-Fi Direct, and stumbled upon the following problem: The MAC address, which I receive from WifiManager wifiMan = (WifiManager) this …
damian
  • 2,001
  • 20
  • 38
7
votes
3 answers

How many devices can i connect with Wi-Fi P2P?

I need to connect 20+ android devices in a client-server network. Each client Android device will be communicating with the server Android device and vice versa. The client devices do not need to communicate with each other. The server device would…
Love2Code
  • 179
  • 1
  • 10
7
votes
1 answer

WifiP2pDevice status stays on INVITED after Wifi Direct Invitation

I am programming a Wifi Direct game, but have run into a problem with the WifiP2pDevice Status when one user declines the invitation to join the connection. Phone A initiates connection to Phone B Phone B status becomes INVITED (as displayed on…
The4thIceman
  • 3,709
  • 2
  • 29
  • 36
7
votes
3 answers

Can I change the group owner in a persistent group in Wi-Fi Direct?

When creating a group via Wi-Fi Direct, I know that I can make a persistent group. My question is: can I create a persistent group, but each time change the group owner (i.e; each turn the group owner will be one of the devices in the group). Also,…
userInThisWorld
  • 1,361
  • 4
  • 18
  • 35
7
votes
1 answer

Is multicasting possible with Wi-Fi Direct?

I'm a bit confused about the new Wi-Fi Direct feature in Android ICS. Is it possible to create a P2P group with multiple devices, and send multicast packets from a source peer to the other peers? Unfortunately, I don't have any devices that are…
Zsombor Erdődy-Nagy
  • 16,864
  • 16
  • 76
  • 101
1
2 3
21 22