Android dial can match to contact for the first time, after the phone number is prefixed, after making a call, no longer match the problem to the contact person

Source: Internet
Author: User

1: Modify Contactsprovider2.java, Querydialersearchincrement ().
Before modifying,
(1). + dialersearchlookupcolumns.call_log_id + "> 0" + "and" + ... about l:9226
(2). + dialersearchlookupcolumns.call_log_id + "> 0" + "and" + ... about l:9231
After modification,
(1). + dialersearchlookupcolumns.call_log_id + "<-1" + "and" + .....
(2). + dialersearchlookupcolumns.call_log_id + "<-1" + "and" + .....
2: Modify Contactsdatabasehelper.java, Createdialersearchview ().
Before modifying,
+ dialersearchlookupcolumns.call_log_id + "> 0" ... about l:5862
After modification,
+ dialersearchlookupcolumns.call_log_id + "<-1" .....
Purpose of the above modification: The search results are subject to the dialer search form.
The first two steps can already solve this problem

3: It is also recommended to turn on the Fuzzy query option.

In Alps/mediatek/extertal/sqlite/custom/sqlite3_android_custom.cpp,
Before the change,

extern void Register_dialer_search_local_functions () {#ifdef config_cmcc_support
Create_number_match_function (0,1);
Create_name_match_function (0,2);
#endif
}

Android dial can match to contact for the first time, after the phone number is prefixed, after making a call, no longer match the problem to the contact person

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.