WifiP2P | Wifi Direct,实现Android手机之间无网络传输文件,用于在局域网下传输任意文件 | Wifi library
kandi X-RAY | WifiP2P Summary
kandi X-RAY | WifiP2P Summary
于 2019/11/24 更新,主要是适配了运行时权限,修复 bug,优化了传输流程. 最近的项目需要实现一个 Android 手机之间无网络传输文件的功能,就研究了下 Wifi P2P(Wifi点对点) 这么一个功能,最后也实现了通过 Wifi 隔空传输文件 的功能,这里我也来整理下代码,分享给大家。. Wifi P2P 是在 Android 4.0 以及更高版本系统中加入的功能,通过 Wifi P2P 可以在不连接网络的情况下,直接与配对的设备进行数据交换。相对于蓝牙,Wifi P2P 的搜索速度和传输速度更快,传输距离更远. 项目主页:Android 实现无网络传输文件 ,欢迎 star.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Submits the file transfer .
- Callback method .
- Handle the intent .
- Called when a menu item is selected
- Returns the MD5 of the specified file .
- Generate dialog .
- Create a group
- String representation of device status .
- Creates and returns the view holder which is used to be clicked when the item is clicked .
- Loads a thumbnail of the given image .
WifiP2P Key Features
WifiP2P Examples and Code Snippets
Community Discussions
Trending Discussions on WifiP2P
QUESTION
I want to programmatically transfer a file from a Raspberry Pi with Wi-Fi access, running Linux (client), to an Android phone (host). I'm using this link as a guide for how to set up a P2P connection on Android, but I cannot find any references to handle the client side on non-Android devices. I understand I can use this link to provide documentation on connecting the client to the host, but I have no leads on how to actually send a file with it.
Essentially, what I'd like to know is: Is there anything I can do on Linux to get the same effect as this, from the Android documentation? Am I completely misguided?
...ANSWER
Answered 2020-Jun-06 at 20:54The solution for establishing a connection was in wpa_cli
Particularly, the commands p2p_find
to discover, p2p_peers
to see what found it, and p2p_connect pbc go_intent=0
to stop searching and connect to the Android host. You can see it show up as a local network with ip a
. However, now I seem to be having a problem on the Android side, and the adventure continues in this question, for anyone interested.
QUESTION
i want to create group chat using local network
all devices connected to router ,, once one send message all other devices receive the message
i worked with this tutorial "code available here" which use WifiP2P and i succeeded to send message from device to another
How to make it a group chat ?
...ANSWER
Answered 2020-Mar-18 at 12:10Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install WifiP2P
You can use WifiP2P like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the WifiP2P component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page