我可以在应用程序中使用 Wi-Fi Direct 和蜂窝数据吗? [英] Can I use Wi-Fi Direct and cellular data in an app?

查看:14
本文介绍了我可以在应用程序中使用 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 和蜂窝数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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