My application should detect that a device connected to a Wi-Fi network is required, and then program an HTTP request over that Wi-Fi network. I searched, but I did not find any method or class to help me do this.
I was thinking of disabling the cellular network so that the HTTP request would go through the Wi-Fi network, but even so I was not successful. And also, is it possible to enable and disable cellular and Wi-Fi networks programmatically?
source
share