WifiUtils
WifiUtils copied to clipboard
Force Wifi network
Hi, How do I force Android to use wifi network instead of mobile network. I'm building an app that connects to a certain WiFi network that has no internet access. In some devices, beacuse of no internet access, device is connecting mobile data.
I would like to force certain Wifi Network.
Thank you.
Hi,
WiFiUtils does everything it can to shift the selected network to the highest priority. Other than that there is not much you can do since some devices decide to prioritize WiFi networks with better internet access and connect to them.
So it's a device specific thing.
Thank you @ThanosFisherman I got it. But, How can i solve this problem by using other ways. Would you give alternative solving advice to me?