从没有热点的智能手机上获取Android设备上的Internet访问
我有一个具有WiFi和蓝牙模块的Android设备。我想使用智能手机的数据连接来构建应用程序以将设备连接到Internet。这可能吗?
智能手机将具有WiFi和数据连接。智能手机的数据连接是否可以通过“ nofollow noreferrer”> bluetooth ?还是有更好的替代方案,例如 wifi-direct href =“ https://developer.android.com/guide/topics/connectivitivitivitive/nfc” rel =“ nofollow noreferrer”> nfc ?我知道在智能手机上启用热点是一种选择。但是,对于热点,关闭WiFi的问题使其无法使用我的用例。 WiFi-hotspot有其他选择吗?
最好的选择是什么?在构建应用程序和服务时我应该考虑什么?
I have an Android device that has wifi and Bluetooth modules. I want to build applications to connect the device to the internet using a smartphone's data connection. Is this possible?
The smartphone will have wifi as well as data connection. Can the smartphone's data connection be shared through Bluetooth? Or is there better alternatives like wifi-direct or NFC? I am aware that enabling Hotspot on the smartphone is an option. But with hotspot, the issue of wifi being turned off makes it not usable for my use case. Is there any alternative to wifi-hotspot?
What will be the best option for this and what things should I consider when building my applications and services?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
NFC绝对不是答案,数据速率太慢了,连接不可靠,并且OS不允许。
如果您的手机在旅途中支持USB(OTG),则使用USB以太网适配器会更好
NFC is definitely not the answer, the data rate is far too slow and the connection unreliable and the OS does not allow it.
You might be better with a USB ethernet adapter if your phone support USB On The Go (OTG)
您的手机应该已经支持使用蓝牙共享数据连接。这就是称为
Your phone should already support sharing a data connection using Bluetooth. This is called Bluetooth tethering. But you also have wifi, so wifi tethering is also an option to share your data connection. No additional app is required.