Code example for ServiceState

Methods: getOperatorAlphaLong, getState

0
   *          the current service state 
   */ 
  private final void doReactOnStateChange( ServiceState serviceState )
  { 
    updateOperatorName( serviceState.getOperatorAlphaLong() );
     
    int state = serviceState.getState();
     
    // determine state change flags 
    boolean oldStateWasEnabled = isDeviceInSystemEnabled( null );
    setLastServiceState( state );
    boolean newStateIsEnabled = isDeviceInSystemEnabled( null );
     
    if ( oldStateWasEnabled != newStateIsEnabled )
    { 
      if ( newStateIsEnabled )
      { 
        // device state changed to enabled 
        doHandleDeviceEnabledBySystem( getContext() ); 
      } 
      else