wifi-direct

Android rename device's name for wifi-direct

爷,独闯天下 提交于 2019-12-19 03:01:22
问题 I am trying to connect two devices using Wifi Direct, but i want to implement programmatically not by user initiated. And for that i have to change Device's WifiDirect's name like below picture : Now discover peers using following methods : wifiP2pManager.discoverPeers(channel, new WifiP2pManager.ActionListener() { @Override public void onSuccess() { Log.d(TAG, "onSuccess"); } @Override public void onFailure(int reason) { Log.d(TAG, "onFailure"); } }); Connect to particular peer via following

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

怎甘沉沦 提交于 2019-12-18 11:14:05
问题 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() . I have observed these results: No peers are discovered and no callbacks are fired for a good 1+ minute. I observe this through the Wi-Fi Direct portion of the Android Wi-Fi settings as well. This is odd because sometimes the discovery completes

Android <-> iOS direct communication (Bluetooth). Is it possible? [duplicate]

瘦欲@ 提交于 2019-12-18 10:27:07
问题 This question already has answers here : Is it possible, in principle, for an Android device to interface with an iPhone over Bluetooth/GameKit? (7 answers) Closed 6 years ago . First of all I am an Android developer, so the question goes to all the iOS developers. Is it possible to achieve an Android <-> iPhone/iPad direct communication ? Some claim it is not possible, others claim it is. I guess two possible technologies would be Bluetooth and/or Wi-Fi Direct. Wi-Fi Direct is not

Can WIFI direct and WIFI station work simultaneously?

烂漫一生 提交于 2019-12-17 22:40:33
问题 As far as I know, essentially WIFI direct is enabled by a soft AP. My question: can the underlying WIFI module work as a WIFI station and as a WIFI direct endpoint simultaneously? That means, we hope that the WIFI module can communicate with a mobile phone using WIFI direct, and at the same time connect to a router as a WIFI station. Is it possible? and how widely and strongly is this case supported in technology? 回答1: You can if your wifi driver supports multi-role . This feature, available

Wifi P2P service discovery works intermittently

人盡茶涼 提交于 2019-12-17 21:42:15
问题 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 register a service to be discovered by other devices and the other to discover the nearby services running on other devices. Any idea if I am doing anything wrong here or is there some specific sequence of other android API calls that need to be made

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

不问归期 提交于 2019-12-17 17:54:25
问题 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 little window and asks the user if they want to accept the connection request. Is it possible to auto-accept these connection requests? I.E to be able to connect to the other device without user confirmation? 回答1: Based on the comments, do you really

Peer-to-Peer Communication HolePunching (Android)

淺唱寂寞╮ 提交于 2019-12-13 19:50:42
问题 I am working on an app that uses peer-to-peer communication between Android devices. It receives and delivers JSON data and the data never goes through the server ever. The server is only used to keep track of user IDs, login times, IP changes, and other stuff. This app will use sockets for communication. Requirements JSON data goes directly to an Android device from another Android device without going through server. The android devices can be connected to any kind network like 3G or Wi-Fi

Android: How to get current device WiFi-direct name

社会主义新天地 提交于 2019-12-12 07:17:32
问题 In a P2P setting, I understand how to get another device's name, but how do I get my own device's name? (the one displayed in WiFi-direct under settings). I have checked WiFiManager , WiFiInfo , and more with no success. 回答1: After you turn on wifi on your device, it is send a WIFI_P2P_THIS_DEVICE_CHANGED_ACTION broadcast. You can catch this with a broadcast receiver and you can get a WifiP2pDevice object, that is your device. @Override public void onReceive(Context context, Intent intent) {

Can WiFi Direct do device to device communication other than file sharing?

*爱你&永不变心* 提交于 2019-12-12 03:54:45
问题 I am playing with WiFi Direct on a Samsung Galaxy S3 smartphone and a Galaxy tablet. I can share pictures and files between the two using WiFi Direct, either from the Android built-in Share option or some third party apps. But what I am really interested is to do some real time communication programmatically between the two. Is it true that an Android app can do any kind of normal WiFi communication once I have a working WiFi Direct connection? If yes, any references(ideally some example code

Video Streaming over wifi?

社会主义新天地 提交于 2019-12-12 03:08:43
问题 How do I stream a video from my android smartphone to my Laptop(windows 7) without using any app? Any suggestions? A brief explanation would really help. And, I mean "streaming" and not file transfer. 回答1: You cannot use this feature without using any app,what you need to do is to program a socket client that sends the video to the server which is connected over wifi .try googling about TCP sockets in android 回答2: Go to the following link . https://code.google.com/p/spydroid-ipcamera/ you