Android中的WiFi连接 [英] WiFi connection in android
本文介绍了Android中的WiFi连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何使用WiFi连接两个Android手机以及用于它的代码是什么?
解决方案
根据Android的版本,您可以使用 WiFi直接的; http://developer.android.com/guide/topics/connectivity/wifip2p.html [ ^ ]。
它允许您以非常特别的方式通过WiFi建立点对点网络。请注意,我认为至少需要API级别14来使用它。
对于API版本,要么低于要么在WiFi上托管服务器或使用蓝牙。
希望这会有所帮助,
Fredrik
同一讨论 -
http:// stackoverflow.com/questions/5993768/connect-two-android-phones-with-wi-fi-without-laptop-or-access-point-and-send [ ^ 一>
How could I connect two android mobiles using WiFi and what is the code used for it
解决方案
Depending on the version of Android you can use WiFi Direct; http://developer.android.com/guide/topics/connectivity/wifip2p.html[^].
It allows you to set up a peer to peer network over WiFi in a very ad-hoc manner. Note that I think you''ll need at least API level 14 to use it.
For API versions lower that that you''d either have to host a server on the WiFi or use Bluetooth.
Hope this helps,
Fredrik
Same Discussion-
http://stackoverflow.com/questions/5993768/connect-two-android-phones-with-wi-fi-without-laptop-or-access-point-and-send[^]
这篇关于Android中的WiFi连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文