public static ArrayList<String> parseUserIDsList(String userIDsText,String homeServerSuffix){
  ArrayList<String> userIDsList=new ArrayList<String>();
  if (!TextUtils.isEmpty(userIDsText)) {
    userIDsText=userIDsText.trim();
    if (!TextUtils.isEmpty(userIDsText)) {
      String[] splitItems=userIDsText.split(";");
      for (int i=0; i < splitItems.length; i++) {
        String item=splitItems[i];
        if (item.length() > 0) {
          String checkedItem=CommonActivityUtils.checkUserId(item,homeServerSuffix);
          if (userIDsList.indexOf(checkedItem) < 0) {
            checkedItem.trim();
            userIDsList.add(checkedItem);
          }
        }
      }
    }
  }
  return userIDsList;
}

public static ArrayList < String > parseUserIDsList ( String userIDsText , String homeServerSuffix ) { ArrayList < String > userIDsList = new ArrayList < String > ( ) ; if ( ! TextUtils . isEmpty ( userIDsText ) ) { userIDsText = userIDsText . trim ( ) ; if ( ! TextUtils . isEmpty ( userIDsText ) ) { String [ ] splitItems = userIDsText . split ( ";" ) ; for ( int i = 0 ; i < splitItems . length ; i ++ ) { String item = splitItems [ i ] ; if ( item . length ( ) > 0 ) { String checkedItem = CommonActivityUtils . checkUserId ( item , homeServerSuffix ) ; if ( userIDsList . indexOf ( checkedItem ) < 0 ) { checkedItem . trim ( ) ; userIDsList . add ( checkedItem ) ; } } } } } return userIDsList ; }
parse an userids text into a list .
