连接两个Android手机具有Wi-Fi(不含笔记本电脑或接入点)和发送文件 [英] Connect two android phones with wi-fi (without laptop or access point) and send file

查看:244
本文介绍了连接两个Android手机具有Wi-Fi(不含笔记本电脑或接入点)和发送文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以连接两台Android手机通过无线网络连接,不使用蓝牙/ GSM / CDMA / IR?此外,没有任何笔记本电脑或Wi-Fi接入点或Wi-Fi路由器。

Is it possible to connect two android phones by wi-fi, without using a bluetooth/GSM/CDMA/IR? Also, there is no any laptop or wi-fi access points or wi-fi routers.

我认为,这是可能创造的这两款手机的一些SSID,做IP地址的静态配置。将Android连接到其它的Andr​​oid无线网络?

I think, that it is possible to create some SSID on both phones, do a static configure of IP addresses. Will android connect to another's android wi-fi?

如果他们将被连接,我怎么能发送一个文件从一部手机到第二?是否有一个FTP客户端和服务器?或者我可以ssh到其他手机?或者telnel / netcat的?也许HTTP?

If they will be connected, how can I send a file from one phone to second? Is there a ftp-client and server? or Can I ssh to other phone? Or telnel/netcat? Maybe http ?

推荐答案

这就是所谓的 ad hoc网络并已之前问:​​

This is called ad hoc network and has been asked before:

能机器人做对等的对等自组织网络?

<一个href="http://stackoverflow.com/questions/5318457/android-wifi-direct-multiple-connection-ad-hoc">Android无线直接多个连接点对点

<一个href="http://stackoverflow.com/questions/4752478/android-ad-hoc-access-point-connection-capabilities">Android特设/接入点连接功能

更新:

简短的回答:特设尚不支持在Android所以这是行不通的。

Short answer: ad hoc is not yet supported on Android so this would not work.

您可以使用蓝牙连接两个Android手机在P2P的方式。

You can use Bluetooth to connect two Android phones in a p2p fashion.

更新2:

根据API 14日在Android的支持通过WiFi直接设备到设备连接4.0 ICS封装<一href="http://developer.android.com/reference/android/net/wifi/p2p/package-summary.html">android.net.wifi.p2p.您可以通过<测试设备能力href="http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_WIFI_DIRECT">FEATURE_WIFI_DIRECT.

Direct device-to-device connection over Wifi is supported under API 14 in Android 4.0 ICS in package android.net.wifi.p2p. You can test devices capability via FEATURE_WIFI_DIRECT.

这篇关于连接两个Android手机具有Wi-Fi(不含笔记本电脑或接入点)和发送文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆