Is there any intent generated when the preferred network is changed on android?
Though WIFI has the higher priority when both Mobile data and WIFI are turned on.but it can be changed using this statement
connectivityManager.setNetworkPreference(ConnectivityManager.TYPE_MOBILE);
However,if I query preferred network immediately after the above statement using
connectivityManager.getNetworkPreference()
I still get ConnectivityManager.TYPE_WIFI
as return value.
So it seems that setNetworkPreference
doesn't change preferred network immediately.
My question,
Is there any intent generated for change in network preference?