170311 guanYu 在图书馆
首先,ContactsContract对应数据库contact2.db,是个模型类。可能第一次遇到这个类的时候,大部分人都会和我一样,以为这是个存电话号码的东西。其实,存电话号码只是它众多功能中一个比较常见且实用的功能。
当然,我也不知道为什么一个主要用来存电话号的东西要做得这么复杂,我猜,大概是想建立vr吧。
进入正题
先看看官方文档吧
- A row in the
ContactsContract.Data
table can store any kind of personal data, such as a phone number or email addresses. The set of data kinds that can be stored in this table is open-ended. There is a predefined set of common kinds, but any application can add its own data kinds. - A row in the
ContactsC