In Android, if both mobile and Wi-Fi networks are available, which one is used?

In my application, users have the opportunity to choose whether the application should make network requests only if a WiFi network is available.

What to do if WiFi is available, but a mobile network is also available. Which one will use Android and is there a guarantee for this?

+2
source share
1 answer

It completely depends on the device, how its ROM is configured. Priority is set on some phones. Some of the older devices that do not have priorities use the latest connected network.

, .

enter image description here

, , .

+1

Source: https://habr.com/ru/post/1624839/


All Articles