public synchronized void addMessages(ArrayList<SmsMmsMessage> newMessages){
  if (newMessages != null) {
    messages.addAll(0,newMessages);
    UpdateMessageCount();
  }
}

public synchronized void addMessages ( ArrayList < SmsMmsMessage > newMessages ) { if ( newMessages != null ) { messages . addAll ( 0 , newMessages ) ; UpdateMessageCount ( ) ; } }
add a list of new messages to the end of the current message list .
