Using the Network State API

The Network State API provides the following classes and interfaces (packaged as a part of the Nokia API):

  • NetworkState

    Use the NetworkState class to retrieve network state and to subscribe or unsubscribe state changes of the network.

  • NetworkStateListener

    Use the NetworkStateListener interface for listening to change notification of phone network state change events.

  • SIMState

    Use the SIMState class to retrieve SIM state and to subscribe or unsubscribe to SIM state change events. It tells whether the SIM state is ready, not ready or no SIM.

  • SIMStateListener

    Use the SIMStateListener interface for listening to change notification of SIM state change events.

  • WLANState

    Use the WLANState class to retrieve WLAN state and to subscribe or unsubscribe to WLAN state change events. It tells whether the WLAN state is connected or not connected.

  • WLANStateListener

    Use the WLANStateListener interface for listening to change notification of WLAN state change events.

For more information about using the Network State API, see: