public boolean isConnectedToChat(){
  return (mMessageConsumer != null) && mMessageConsumer.isRunning();
}

public boolean isConnectedToChat ( ) { return ( mMessageConsumer != null ) && mMessageConsumer . isRunning ( ) ; }
is the chat service connected or not
