Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | Using webMethods Mobile Designer | Creating Mobile Application Projects | Coding a Mobile Application | Connectivity Status API | Registering for Connection Status Notifications
 
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. You can register a class that implements the interface com.softwareag.mobile.md.net.IConnectivityWatcher. Every time a network interface changes state, information is provided to your application through the onConnectivityChanged() method. This information includes 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).