首页 > 代码库 > 电话号码位数字符串匹配

电话号码位数字符串匹配

(Message App)The app just take the last 7 digits from a contact, then it does not create a converstion with the name of the contact that you are texting with and the message is not sent

M:mediatek/config/up11_ddm_a35eh/sagereal_copy/packages/apps/Mms/src/com/android/mms/ui/RecipientsEditor.java
Comment: 
将 list.add(token.getAddress()); 改为 list.add(token.getComment() + token.getAddress());

frameworks/base/telephony/java/android/telephony/PhoneNumberUtils.java

中minMatchLen = 7

android默认的最小匹配长度是7,如果添加了宏控

SAGEREAL_MIN_MATCH_8 = no
/trunk/packages/providers/ContactsProvider/src/com/android/providers/contacts/ContactsProvider2.java

       

 sb.append(" AND " + PhoneLookupColumns.NORMALIZED_NUMBER + " LIKE ‘");

改为

  sb.append(" AND " + PhoneLookupColumns.NORMALIZED_NUMBER + " LIKE ‘%");