I am currently developing an app (as part of a distributed system) that requires a continous connection to the internet. The app is receiving a more or less steady stream of commands via bluetooth that has to be processed by a server. This works while my phone (Moto G2) has a WiFi connection. However, when WiFi is disabled or becomes unavailable and the phone automatically switches to mobile data, there is no working network interface for over a minute, although the ConnectivityManager lists mobile data as available the whole time. Unfortunately, my system cannot tolerate delays of more than a couple of seconds.
Do you know of any ways to reduce the time it takes to switch from WiFi to mobile data? The solution does not have to be pretty or efficient, it just has to work.
12-12-2014 06:19 PM