I am working on an application and I need to talk to my router. I need to download a file from a router using local ip . If the router does not have Internet access, Android tries to download the file via the mobile network .
Is there a way to get Android to use WiFi even if there is no Internet access? (its new Android Marshmallow feature for displaying WiFi, but using a mobile network). The file is not accessible from the WAN only from the LAN .
I can make him turn off the mobile network or turn on airplane mode with WiFi on, but this is not an option. I need to do this programmatically for this particular download.
android android-6.0-marshmallow networking wifi connection
Informatic0re
source share