码迷,mamicode.com
首页 > 其他好文 > 详细

电话号码位数字符串匹配

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

标签:android   java   art   io   re   c   

(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

电话号码位数字符串匹配

标签:android   java   art   io   re   c   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!