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.