Android ad-hoc/接入点连接功能
我正在寻找通过使用蓝牙或最好是 Wi-Fi 将两个或更多 Android 手机相互连接的最佳(如果有的话)编程方式。显然,Android 设备仍然没有 ad-hoc Wi-Fi 功能,我正在尝试创建一个基于对等的程序,而不使用任何中央服务器。
我想在不修改手机的情况下完成此任务(无需生根)。如果可能的话,用手机作为接入点而客户端无法访问互联网也很好,我只需要一个移动网络。
I am looking for the best, if any, programmatic way of connecting two or more Android phones to each other through the use of either Bluetooth or preferably, Wi-Fi. Apparently Android devices still do not have ad-hoc Wi-Fi capabilities and I am trying to create a peer based program without the use of any central server.
I want to accomplish this without the use of modification to the phones (no rooting). It is even fine to have a phone act as an access point with no Internet access to its clients if that is possible, I just need a mobile network.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的 Android 手机上有 2.2,它确实具有网络共享功能 - 它可以创建一个无线接入点,然后其他设备可以连接到它。
要防止其上网,只需关闭移动互联网即可。
I have 2.2 on my Android phone and it does have tethering - it can create a wireless access point then other devices can connect to it.
To prevent it having the internet, just turn mobile internet off.
简而言之,您不能直接通过 SDK。某些手机/版本可能有工厂或其他支持来执行此操作,但您不能依赖 SDK 来执行此操作。
The short answer is, you can't directly through the SDK. Some phones / revisions may have factory or other support to do so, but you can't rely on the SDK to do this.