WifiUtils icon indicating copy to clipboard operation
WifiUtils copied to clipboard

Force Wifi network

Open JavaDeveloper08 opened this issue 4 years ago • 2 comments

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.

JavaDeveloper08 avatar Oct 28 '20 11:10 JavaDeveloper08

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.

ThanosFisherman avatar Oct 28 '20 12:10 ThanosFisherman

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?

JavaDeveloper08 avatar Oct 31 '20 16:10 JavaDeveloper08