我可以在应用程序中使用 Wi-Fi Direct 和蜂窝数据吗?

Can I use Wi-Fi Direct and cellular data in an app?(我可以在应用程序中使用 Wi-Fi Direct 和蜂窝数据吗?)
本文介绍了我可以在应用程序中使用 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 和蜂窝数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)