Android contact app insights

Source: Internet
Author: User

When I was doing a Contact application yesterday, I encountered a problem and found that I was not very clear about the contact data. So I used the source code debug for one morning and felt that F6, f8 does not run more than a dozen rounds back and forth, and has a clear concept for the database.

Therefore, a new URI is added to contactprovider and called outside. After several times,ProgramRunning properly.

When a contact is created, if there is a contact with the same name and surname, the two will be merged, so the following method is used to disable automatic link:

Contentprovideroperation.Newinsert(Rawcontacts.Content_uri). Addvalue

(Rawcontacts.Aggregation_mode, Rawcontacts.

Aggregation_mode_disabled );

 

After testing, it runs well. The contact's data is almost clear. Next, you should be familiar with the data binding and acquisition on the editing interface.


 

Related Article

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.