Building Mobile Enterprise Applications : Using webMethods Mobile Designer : 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. 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).
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback