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
0
votes
1 answer

discoverpeers in simple android wifip2pmanager code

i going to start a project in android via wifip2pmanager. it seem the channel successfully created ("initialize"). but for next step my code do not work("discoverPeers or creategroup"). is any problem in below code? public class MainActivity extends…
hamedata
  • 125
  • 1
  • 12
0
votes
1 answer

Peer List when discovered through wifi p2p displays image and user name

When peer list is discovered using wifi p2p's onPeersAvailable() method, it displays the device name and address, can we display an image in addition to the name and address?
0
votes
1 answer

inconsistency in getting WifiP2pInfo in WiFiDirect

i am creating an application based on WifiDirect in android but the issue that i am facing inconsistency in getting wifi p2p connection info. i am checking whether wifi direct is on or not , it shows its true but still sometimes i am getting…
Hunt
  • 8,215
  • 28
  • 116
  • 256
0
votes
1 answer

Regarding Wifi P2P in Android Programming

I am new to android programming. I had some doubts regarding Wifi peer to peer connections. 1. Does it require either of the devices to be connected to the internet? 2. For detecting peers nearby, the device has to know that the other device has…
0
votes
1 answer

How can two android devices know the presence of each other

I'm developing an andoird application that needs to know how many and what kind of other android devices are using the same application. After digging about BLE and Wifi Direct, I'm doubt that there is no efficient way to do so, since BLE API in…
Ran Xian
  • 43
  • 4
0
votes
0 answers

Android WiFi Direct P2P Connection always fails

I try to connect 2 Android devices via WiFi Direct so that I could use Miracast sometime but always get the same error. Im working 3 days on that now but can't figure out, why this isnt working. My logcat error: I/wpa_supplicant( 4244): p2p0:…
Sharky
  • 76
  • 6
0
votes
0 answers

Use Raspberry Pi like GoPro, Live Videostream over WiFi direct connection between Pi and Android

In the last weeks I experimented with my Raspberry Pi B and with the PiCamera. I had the idea to establish a connection between the RasPi and an Android device or (if it is easier) to a windows notebook without an access point in between, just like…
Ler00n
  • 1
  • 1
  • 2
0
votes
0 answers

android sending files using socket

I am using wifi direct to send file between two android phones. sender code: OutputStream outputStream = null; InputStream inputStream = null; try { outputStream = socket.getOutputStream(); …
vincentzhou
  • 710
  • 6
  • 18
0
votes
2 answers

WiFi Direct Chat Group Owner

Im trying to make a chat with wifi direct in android. But i have some question. Suppose that there are 10 devices in a room. To make it comunicate i must have 1 group owner and 9 client right? So, if i am a client, how do i find the group owner to…
user3805317
  • 121
  • 1
  • 1
  • 10
0
votes
0 answers

Java server socket not accepting connection over tethered connection

I've written a small file transfer program for android using standard Java sockets. The program works fine except for the following case: I connect two android devices A and B over WiFi tethering connection. Device A is sharing the connection…
Vinit Shandilya
  • 1,643
  • 5
  • 24
  • 44
0
votes
1 answer

Pass a value from broadcastreceiver class to main activity in wifi direct

I want to send the value in string variable result, which is in the WiFiDirectBroadcastReceiver, to WiFiDirectActivity and I tried doing it as shown in this. but when I ran the application it kept searching for peers. when I comment those added…
senrulz
  • 121
  • 1
  • 2
  • 12
0
votes
1 answer

Finding Miracast connections with Android

I am trying to build an Android app that scans for local Miracast connections and connects to them to mirror the screen automatically. I also want the ability to save connections that the user has already connected to before and give them nicknames…
TheSilas
  • 137
  • 3
  • 12
0
votes
1 answer

how to get the peer count of each device in a WiFi-Direct environment

Upon requestPeers() or at the discoverPeers() I want to get the peer count of each device available, so that each device will have the peer counts of the devices, they can connect to. Then I can call the createGroup() method in the device with…
senrulz
  • 121
  • 1
  • 2
  • 12
0
votes
2 answers

Android Wifi P2P connection is not created

I have two devices: HTC One X (Android 4.2.2) and Samsung Note N8000 (Android 4.1.2) I need to connect them using Wifi P2P. I taken an example from Creating P2P Connections with Wi-Fi, created broadcast receiver and Wifi P2P initializion. private…
0
votes
1 answer

P2P Netconnection using RTMFP - IOS App/connection freezes on relaunch?

We are developing a turn based game that requires two players to connect over local wifi. At the moment we are using Lee Burrows tutorial and code located…
1 2 3
21
22