public void addMessage(Message message){
  if (SHOW_LOGS)   Logger.v(TAG,">> addMessage, lock " + message);
  mQueueLock.lock(TAG);
  mPlayerMessagesQueue.add(message);
  mQueueLock.notify(TAG);
  if (SHOW_LOGS)   Logger.v(TAG,"<< addMessage, unlock " + message);
  mQueueLock.unlock(TAG);
}

public void addMessage ( Message message ) { if ( SHOW_LOGS ) Logger . v ( TAG , ">> addMessage, lock " + message ) ; mQueueLock . lock ( TAG ) ; mPlayerMessagesQueue . add ( message ) ; mQueueLock . notify ( TAG ) ; if ( SHOW_LOGS ) Logger . v ( TAG , "<< addMessage, unlock " + message ) ; mQueueLock . unlock ( TAG ) ; }
use it if you need to add a single message
