Registering for Connection Status Notifications
For longer-term network traffic, for example a "background sync"-type situation, it is usually desirable to watch for notifications of network changes. Developers may register a class that implements the interface com.softwareag.mobile.md.net.IConnectivityWatcher. Every time a network interface changes state, information will then be provided to the developer's application through the onConnectivityChanged() method. This information will include the network type, the new state that it has moved to, and the overall connectivity status of the device (connected to a network through at least one connection, or fully offline).