How to handle network change between wifi and mobile data?
问题 I am building a VoIP app.During a VoIP call when user switches between WiFi to mobile data i have a problem handling the scenario. In my call screen activity I have registered for receiver which helps me get notified about the network change scenarios. This is the code which I am using for detecting change in networks in the onRecieve Method. conn_name is private class level variable holding previous connection name. ConnectivityManager connectivity_mgr = ((ConnectivityManager) context