Android messages add recipients from contacts, and search results are sorted incorrectly when searching in the Contacts multi-select interface (contacts have Google accounts)

Source: Internet
Author: User
There are many merge contacts in Google account [email protected] with the same phone number in the contact, which results in the title and number of the group group (Phonebookindex), and the number of contacts in the search results list is not equal.
Because the SQL statement that searches to the contact list is grouped by phone number, the same number is treated as a single line.


Modify the Contactsprovider2.java file 2 places in the case Phone_email_filter branch:
Case Phone_email_filter: {
Settablesandprojectionmapfordata (QB, URI, projection, true);//Change the true to false;
......
GroupBy = Phone.data + "," + Email.data + "," + rawcontacts.contact_id; Replace this sentence with the following: GroupBy = "";

Android messages add recipients from contacts, and search results are sorted incorrectly when searching in the Contacts multi-select interface (contacts have Google accounts)

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.