通过 Android 设备的 Wifi Direct,实现 Android 手机之间传输任意文件
实现思路请看:Android 实现无网络传输文件
通过 Android 设备的 Wifi Direct,实现 Android 手机之间传输任意文件
License: MIT License
通过 Android 设备的 Wifi Direct,实现 Android 手机之间传输任意文件
实现思路请看:Android 实现无网络传输文件
Dear Sir,
Thanks for the sharing!
I have tried your code on my 2 Android 9 devices.
Although the two devices can connect each other, the file transferring is unsuccessful?
I have also tried this code on Android 10 device.
However, when I clicked "Choose Document" icon on the top right corner, the app quitted unexpectedly?
May I know if any tips for fixing this issue?
Any suggestions will be highly appreciated!
Thanks!
非常感谢~
Hello LeavesC,
If you want I can push an English translation of WifiP2P
Let me now
Hello
I am able to send single file but how can I send multiple files at same time using this code ?
在华为手机上获取不到WiFi设备信息,广播收听不到,其他手机可以
手机能既是客户端又是服务端吗?能双向通信吗?
如题,被链接的手机,已经打印出日志,“已连接p2p设备”,请问是,这个已经链接的反馈没有反馈过去吗?
传输速度能达到多少啊老铁
华为手机好像对点对点通信做了限制,华为手机只能被华为手机发现和连接,其他手机发现不了华为手机,郁闷呀,这怎么搞?
android 8.0以上环境中,取得WiFi设备清单必须动态获取定位权限ACCESS_COARSE_LOCATION。
大佬, 啥时候适配Android13+了
例如要传输一部几个G的视频文件,这个获取MD5的过程是需要花费一段时间的。这个时候如果用户点击了传输按钮而Md5值没有获取到该怎么处理?
手机:小米9
版本:android9.0
问题:demo下载下来后在手机上运行,在ReceiveFileActivity中创建群组的回调一直走的是onFailure(),reason返回的值是1,所有的权限也给了
请问 支持群主给群员发送消息吗
每次和windows传文件都要开热点或者通过qq 很麻烦
能实现wifi direct传文件的话方便很多的 (类似现在的miui+)
02-21 18:47:35.748 17664-18111/com.czy.filetransfer E/WifiClientTask: 文件发送异常 Exception: failed to connect to /192.168.49.1 (port 4786) after 1000000ms: isConnected failed: ECONNREFUSED (Connection refused)
请问是什么问题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.