Can I use Wi-Fi Direct and cellular data in an app

2019-01-23 21:51发布

问题:

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?

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.

回答1:

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