简体   繁体   English

通过wifi在Android设备之间传输数据

[英]Transfer data between android device over wifi

I want to send data (for an example it contains the information: name,address) from my app to another hotspot enabled android device using the same app and display the information in it. 我想使用同一应用程序将数据(例如,包含信息:名称,地址)从我的应用程序发送到另一个启用了热点的android设备,并在其中显示信息。 So, how do I transfer? 那么,我该如何转让? If it is not possible please tell me if there any possible way to transfer data via WiFi. 如果不可能,请告诉我是否有任何可能的方法可以通过WiFi传输数据。 Since I am new, procedure with code help me a lot. 由于我是新手,因此使用代码编写程序对我有很大帮助。

This is what you need. 就是你所需要的。 P2P communication can only by performed by devices that run android 4.0 and up. P2P通信只能由运行android 4.0及更高版本的设备执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM