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.

331 questions
30
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,585
  • 2
  • 16
  • 28
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,462
  • 3
  • 26
  • 37
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,270
  • 8
  • 24
  • 46
10
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
  • 2,929
  • 1
  • 11
  • 31
9
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,739
  • 3
  • 18
  • 36
9
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
  • 121
  • 2
  • 7
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
  • 25,732
  • 8
  • 77
  • 136
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,152
  • 3
  • 31
  • 49
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
  • 2,986
  • 2
  • 25
  • 29
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,133
  • 3
  • 17
  • 31
7
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
  • 1,890
  • 18
  • 37
6
votes
0 answers

Android P2P direct connection for multiple devices. Peer as GroupOwner and client at the same time

I want to create a chat application (without internet connection) for Android-based on P2P communication via WI-FI (or Bluetooth) between 3 or more devices. I would like every device to have a direct connection to all devices. I know that android…
qba7
  • 61
  • 3
6
votes
3 answers

Android O issues with WiFi Peer Discovery

I am developing an Android Application that employs WiFi (Direct) for service discovery and P2P peer discovery/connection. My development enviromment is as follows:- Android Studio 3.0 Beta 4 Build #AI-171.4304935, built on August 29, 2017 JRE:…
Hector
  • 2,024
  • 15
  • 69
  • 142
6
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…
1
2 3
22 23