public synchronized void addMessage(SmsMmsMessage newMessage){
  messages.add(newMessage);
  UpdateMessageCount();
}

public synchronized void addMessage ( SmsMmsMessage newMessage ) { messages . add ( newMessage ) ; UpdateMessageCount ( ) ; }
add a message and its view to the end of the list of messages .
