On the function of adding, deleting, checking and modifying Android mobile phone contact development

Recently, when I was working on the function module of mobile phone contacts, I encountered a lot of holes. There are some so-called most comprehensive introduction to the development of mobile phone contacts searched on the Internet, and there are still some bugs. Therefore, I wrote down my recent project experience and methods, which can not only help you reduce the threshold of understanding the development of mobile phone contacts on Android. OK, less nonsense, and then go straight to the topic.

1、 Explain the prelude of mobile phone contacts in simple terms (the data table of Xiaomi mobile phone is different from that of the simulator)

1. Mobile phone contacts are mainly used to manipulate the contacts2.db database table. There are three important tables in this database, namely data and raw_ Contacts and mimetyps. In the following addition, deletion, query and modification module, the association processing is mainly based on the relationship between tables.

1.1 data table

1.2 mimetypes table

1.3、raw_ Contacts table

1.4. Method of downloading contacts2.db table

Open the Android simulator in eclipse, click DDMS in the upper right corner of the eclipse navigation bar in window - > show view - > other.. - > file explorer, and the contacts2.db database will be available under data - > Data - > com.android.providers.contact - > databases in file explorer. Click and save.

View the download link of sqllite software

2. Simple mobile contact query module

3. Simple mobile phone contact adding module

4. Simple mobile contact update module

5. Simple mobile contact deletion module

6. The difference between Dahua self-made mobile phone contact software and system mobile phone contact software

6.1. The mobile phone contact software of the system does not delete a single contact directly, but sets a value to 0 to make the mobile phone contact information invisible. According to most online examples, the information of a single contact in the data database table is deleted directly.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>