private void readUnreadSMS(){
  ArrayList<Sms> smsList=mSmsManager.getLastUnreadSms();
  Collections.sort(smsList);
  XmppMsg allSms=new XmppMsg();
  if (smsList.size() > 0) {
    sendSmsListOnXmpp(smsList,null,null);
  }
 else {
    allSms.appendLine(getString(R.string.chat_no_sms));
  }
  send(allSms);
}

private void readUnreadSMS ( ) { ArrayList < Sms > smsList = mSmsManager . getLastUnreadSms ( ) ; Collections . sort ( smsList ) ; XmppMsg allSms = new XmppMsg ( ) ; if ( smsList . size ( ) > 0 ) { sendSmsListOnXmpp ( smsList , null , null ) ; } else { allSms . appendLine ( getString ( R . string . chat_no_sms ) ) ; } send ( allSms ) ; }
reads unread sms from all contacts
