我可以使用WiFi两种Android手机,而不是连接到路由器之间传输数据/消息? [英] Can I use WiFi to transfer data/messages between two android phones, not connected to a router?
本文介绍了我可以使用WiFi两种Android手机,而不是连接到路由器之间传输数据/消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道,如果两个Android手机连接到同一WiFi网络,他们可以实现socket编程在它们之间传输数据
但其实我是想知道你是否可以用wifi两个Android手机之间的传输媒介,就像你蓝牙?
解决方案
对于通过WiFi数据传输速度更快,可以通过使用Wi-Fi直连做
这是一个点对点连接。因此,这将传输从数据
一到其他设备无需中间(插座)。为例抓
此链接在谷歌开发 wifip2p 并的与P2P连接的Wi-Fi
捕捉Github的样本 WifiDirectFileTransfer
I'm aware that if two Android phones are connected to a same wifi network, they can implement socket programming to transfer data between them But I actually want to know if you can use wifi as a transfer medium between two Android phones, just like you Bluetooth?
解决方案
For faster transmission of data over wifi can be done by using "WifiDirect"
which is a "p2p" connection. so that this will transfer the data from
one to other device without an Intermediate(Socket). For Example catch
this link in google developers wifip2p and P2P Connection with Wi-Fi
Catch a sample in Github WifiDirectFileTransfer
这篇关于我可以使用WiFi两种Android手机,而不是连接到路由器之间传输数据/消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文