0

In my use case an IOT Device creates a local Wifi Network that my android phone should connect to. To connect to this network I am using

connectivityManager.requestNetwork(...)

and receive a confirmation of connection inside of

override fun onAvailable(network: Network) {
 // connectivityManager.bindProcessToNetwork(network)

  super.onAvailable(network)
}

As a substitute for the IOT Device I am currently just using another phone which provides a hotspot. This other phone confirms that a device is connected to its hotspot, and when the app is closed this connection disappears as well.

but when I look in my list of Wifi Networks under settings, I still see only my previous default wifi network. Also, I can still access the internet in the browser.

Does this mean that network connected to by the ConnectivityManager is connected in parallel to the default network? Do android phones support connecting to multiple Wifi networks?

Also, is there some way to force the phone to connect to a wifi network permanently, and not bound to the lifetime of the app?

EDIT: Ive found this: https://source.android.com/docs/core/connect/wifi-sta-sta-concurrency

so it seems that newer android devices do in fact support concurrent Wifi connections, which could explain what I observed. It would still be interesting to hear if anyone knows for certain that this is what I am observing.

Claude Hasler
  • 396
  • 1
  • 14

0 Answers0