Android API之android.provider.ContactsContract

android.provider.ContactsContract

ContactsContract是联系人provider和app的contract。定义了已支持的URL和column。取代了之前的Contacts。

Overview

ContactsContract定义了有关联系人信息的可扩展的数据库。Contact信息保存为三层数据模型:

1. Data表保存了任何类型的个人数据。例如:电话号码、email地址等。存在Data表中的数据类型集是开放的(无限制的)。提供了常用数据类型集。任何app能添加自己的数据类型。

2. RawContacts表中的数据集描述一个人和这个人的一个帐户。(例如:用户的Gmail帐户)。

3. Contacts表呈现描述同一个人的一个或多个RawContas的聚合数据。当RawContacts表中的数据或与其相关的数据发生变化时,Contacts中的数据可能也会发生变化。

其他表:

Other tables include:

  • Groups, which contains information about raw contact groups such as Gmail contact groups. The current API does not support the notion of groups spanning multiple accounts.
  • StatusUpdates, which contains social status updates including IM availability.
  • AggregationExceptions, which is used for manual aggregation and disaggregation of raw contacts
  • Settings, which contains visibility and sync settings for accounts and groups.
  • SyncState, which contains free-form data maintained on behalf of sync adapters
  • PhoneLookup, which is used for quick caller-ID lookup
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值