Android API之android.provider.ContactsContract
2023-09-14 08:58:31 时间
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 contactsSettings
, which contains visibility and sync settings for accounts and groups.SyncState
, which contains free-form data maintained on behalf of sync adaptersPhoneLookup
, which is used for quick caller-ID lookup
相关文章
- Android Camera2 API 同时使用前后摄像头预览
- android bindservice方法,Android bindservice方法返回false
- android进阶之了解Android系统与开机过程
- Android Studio中layout_gravity与gravity[通俗易懂]
- 常见的Android编译优化问题
- Android n_android 反编译
- android进程间通信的方式_Android进程注入
- 浅谈 Android 的安全启动和完整性保护
- 【Android 应用开发】Android 网络编程 API笔记 - java.net 包相关 接口 api
- 【Android 逆向】类加载器 ClassLoader ( 类加载时机 | 隐式加载 | 显示加载 | 类加载步骤 | 装载 | 链接 | 初始化 )
- 【ijkplayer】编译 Android 版本的 ijkplayer ② ( 切换到 k0.8.8 分支 | 执行 init-android.sh 脚本进行初始化操作 )
- 【错误记录】Android Studio 集成 ARoute 编译报错 ( 兼容 support 库和 androidx 库 | add ‘tools:replace=“android:appCo )
- 【Android Gradle 插件】组件化中的 Gradle 构建脚本实现 ⑤ ( 优化 Gradle 构建脚本 | 构建脚本结构 | 闭包定义及用法 | 依赖配置 | android 块配置 )
- 【错误记录】Android Studio 编译报错 ( The project is using an incompatible version (AGP 7.4.2) of the Androi )
- Android开发中遇到的问题(四)——Android中WARNING: Application does not specify an API level requirement!的解决方法详解手机开发
- [android] 保存文件到手机内存详解手机开发
- Android中android:visibility的3中属性的剖析详解手机开发
- Android Framework层看硬件加速详解手机开发
- 超过20%用户仍在使用Android第三方ROM
- Oracle数据库入门指南API快速入门(oracle入门api)
- 数据库存储的API文档从离线文件变有效信息(api文档存mysql)
- API控制MySQL数据库快速便捷(api控制mysql)
- API技术提高MySQL数据库性能(api和mysql)
- android不同activity之间共享数据解决方法
- Android不同Activity间数据的传递Bundle对象的应用
- 在Android中访问WebService接口的方法
- Android之ScrollView嵌套ListView和GridView冲突的解决方法
- android图片转换器示例
- Android实现新增及编辑联系人的方法
- Android系统设置中的清除数据会清除哪些数据?