Please modify the file
/alps/frameworks/ex/chips/src/com/android/ex/chips/recipientalternatesadapter.java
private static Cursor Queryaddressdata (context context, arraylist<string> addresseslist, int addresstype)
Put here:
M:support recognizing, kinds of separator. @{
Char[] Seperatorarr = {', ', '; '};
int indexofseparator =-1;
int cnt = 0;
while ((Indexofseparator = 1) && (CNT <= seperatorarr.length)) {
Indexofseparator = Phonestr.indexof (seperatorarr[cnt]);
cnt++;
}
if (indexofseparator! =-1) {
Phonestr = phonestr.substring (0, Indexofseparator); M:get String Before separator
} else {
Continue
}
Change:
M:support recognizing, kinds of separator. Remove comma and semicolon at the end of address if exists. @{
Phonestr = Phonestr.replaceall ("([,]+$) | ( [; ] +$)","");
Android When you create a new text message, add a contact with the name "," (comma), the app crashes