Can I use Wi-Fi Direct and cellular data in an app?(我可以在应用程序中使用 Wi-Fi Direct 和蜂窝数据吗?)
问题描述
我有两个以上的 Android 设备.我希望这些设备使用 Wi-Fi Direct 向其他设备发送指令,同时能够通过它们的蜂窝数据连接访问互联网.似乎使用 Wi-Fi Direct 接口被视为主要连接,禁用其他连接,就像 Wi-Fi 如何禁用蜂窝数据连接一样.
I have two+ Android devices. I would like the devices to send instructions to the other devices using Wi-Fi Direct, while at the same time being able to access the internet via their cellular data connection. It seems that using the Wi-Fi Direct interface is being treated as the primary connection, disabling the other connections, just like how Wi-Fi disables the cellular data connection.
如何以编程方式允许两者同时运行?
How can I programmatically allow both to operate at the same time?
目前 Wi-Fi Direct 接收器是根据 Google 的 Android 开发者文档实现的.我假设我可以像使用蓝牙和其他连接一样使用 Wi-Fi Direct.
Currently the Wi-Fi Direct receiver is implemented according to Google's Android Developer documents. I was under the assumption that I could use Wi-Fi Direct much like I can use Bluetooth alongside other connections.
推荐答案
是的,可以这样做,你可以查看一些文章 这里.XDA 的一位开发人员开发了一个应用程序来执行此操作,称为 Super下载 超级下载 - 快! .您可以从 这里和这里或者你可以做一些黑客 这里是源代码 连接到 3G 和 WiFi 以共享互联网连接的应用程序(但我不确定它会对你有多大帮助).或尝试 反编译 或 逆向工程 超级下载应用程序
Yes it is possible to do that, you can check some articles over here . One of the developers in XDA has developed an application to do that called Super Download Lite and paid version of Super Download - Fast! . You can get details from here and here or you can do some hacking Here is the source code of application which connect to 3G and WiFi to share the connection of the internet (But I am not sure how much it will help you). or try decompiling or revers engineering the Super Download app
这篇关于我可以在应用程序中使用 Wi-Fi Direct 和蜂窝数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:我可以在应用程序中使用 Wi-Fi Direct 和蜂窝数据吗?


- android 4中的android RadioButton问题 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01