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
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
0 answers

Add Suffix to name of WiFi Direct Group name. (similar to what PDANet does)

I am trying to create a WiFi Direct Group with a custom name. But after exploring all the options I came to know that we cannot change the name and Android OS decide itself about the name of WiFi Direct Group I even tried Reflection to achieve the…
Rahul Sharma
  • 2,867
  • 2
  • 27
  • 40
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
  • 4,016
  • 21
  • 112
  • 211
6
votes
1 answer

Connect Raspberry with Android through Wifi Direct (p2p) services

I'm trying to connect an android app with a raspberry using OS jessie 8. I can connect manually if only one android device is available near the raspberry. But if there is more than one android device available I can't identify which device the…
foretama
  • 81
  • 5
6
votes
0 answers

How to set Wi-Fi Direct password?

I am creating an access point on android using Wi-Fi Direct. The name of the access point and the password are generated automatically when I call createGroup on my WifiP2pManager. How can I set the password myself? Is it even possible?
misalu2001
  • 73
  • 3
6
votes
1 answer

Does an equivalent of Wi-Fi Direct/Wi-Fi P2P exist for Phonegap/Cordova?

I'm building an Android application to allow communication between two devices in a limited range but I can't find an equivalent plugin to the native Android Wi-Fi peer-to-peer for Phonegap/Cordova. Any suggestion ? May another service (such as the…
tcollart
  • 1,032
  • 2
  • 17
  • 29
6
votes
4 answers

Why is discovering peers for Android Wi-Fi Direct so unreliable?

I am experimenting with Android's Wi-Fi Direct (or P2P if you prefer). I thought it was working very nicely between my two phones, but I realized I am encountering issues with the WifiP2pManager.discoverPeers() and/or WifiP2pManager.requestPeers().…
Mark Herscher
  • 1,761
  • 2
  • 19
  • 32
6
votes
2 answers

WiFiDirect discoverServices keeps failing with error 3 (NO_SERVICE_REQUESTS)

I'm using WiFi P2P for network service discovery, and I'm following the instructions as outlined on the developer guide. Here's the relevant code in my service class: public void onCreate() { manager = (WifiP2pManager)…
5
votes
2 answers

WifiP2pManager.discoverPeers fails in android 10

following code sample returns Error code: 0, which is the error code for internal error in android. Is there any workaround which can enable discovering peers in android 10 devices? wifip2pmanager.discoverPeers(wifip2pmanagerChannel,…
J.Maduka
  • 73
  • 1
  • 10
5
votes
1 answer

Create group using wifi p2p to connect multiple device

I want to create a connection where one device will be like server which will stream some data to connected and multiple device can connect to that device which receive data. So i have done some kind of research i got to know that we can do this…
Nikhil Sharma
  • 593
  • 7
  • 23
5
votes
1 answer

Why does Android Wi-Fi Direct only return one service at a time with discoverServices?

When you call discoverPeers in Wi-Fi Direct, it returns a list of peers to the onPeersAvailable method in the PeerListListener (once you call requestPeers). However, when you call discoverServices, you only get one service at a time to the…
5
votes
1 answer

How to Stop peer discovery in WifiDirect Android

I an trying to stop peer discovery in wifi direct using the code below. public void StopPeerDiscovery(){ manager.stopPeerDiscovery(channel, new ActionListener() { @Override public void onSuccess() { …
Furious
  • 473
  • 2
  • 5
  • 21
5
votes
2 answers

Wi-fi P2P. Inform all peers available of some event

The problem: I'm making an offline-multiplayer android game, where people can create or join a room and play together via Wi-fi. Consider the situation when a user creates a room and he (of course) has to inform all other users that there is a room…
Sergey Maslov
  • 758
  • 1
  • 8
  • 22
5
votes
1 answer

Preventing WiFi-direct from switching off when not used

I am targeting API 17 and using the code below to enable the WiFi-direct (P2P). Everything works fine (finding and connecting to peers), however when not used WiFi-direct keeps switching off from time to time (looks like it depends on the android…
Devester
  • 1,183
  • 4
  • 14
  • 41
5
votes
2 answers

How to create a non-persistent WiFi direct group on android?

When WifiP2pManager.connect is called for the first time, there is a confirmation dialog on the target device to accept the connection. On subsequent connections this confirmation is not asked anymore, the group is persisted on the device. I don't…
Jimmy Praet
  • 2,230
  • 1
  • 15
  • 14
1
2
3
21 22