首页 > 其他 > 详细

电话号码位数字符串匹配

时间:2014-07-16 21:43:00      阅读:252      评论:0      收藏:0      [点我收藏+]

(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 ‘%");

电话号码位数字符串匹配,布布扣,bubuko.com

电话号码位数字符串匹配

原文:http://www.cnblogs.com/plpdan/p/3835812.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!