Android Contacts(一)—— 读取联系人
来源:互联网 发布:税务总局网络培训学院 编辑:程序博客网 时间:2024/06/06 00:23
Introduction To Android Contacts
Learn to work with the Android contacts database. Basic knowledge of accessing SQLite in Android along with using Cursors is expected. See the Android SQLite and Cursor Article for more information. Google changed the contacts database moving from 1.x to 2.0 versions of Android. This tutorial will be broken into 3 sections. First covering accessing contacts in Android 2.0. The second page will deal with accessing the contacts in Android 1.6 and before. Third we'll glue it all together with a class that abstracts specific classes for each version and a set of classes to manage the data from the contact records.
Android联系人的介绍
学习使用Android联系人的数据库。假设你已经了解在Android中通过Cursor使用SQLite的基本知识,更多信息请查阅 “Android SQLite and Cursor Article” 。Google在Android升级到2.0时对联系人数据库进行了修改,该教程将分为3个章节:1.在Android 2.0中获取联系人数据;2.在Android 1.6及之前版本中获取联系人的方法;3.通过一个抽象类对各版本获取联系人数据的操作进行统一,总结一系列用来管理从通讯录中获取到的数据的类。
(翻译部分为yxyx1024原创,如有不妥之处还望包涵并指正,感谢。)
Contacts 读取代码:
记得在AndroidManifest.xml中加入android.permission.READ_CONTACTS这个permission
<uses-permission android:name="android.permission.READ_CONTACTS" />
参考推荐:
Working With Android Contacts
Android Contacts的使用
(本文转自http://blog.csdn.net/ithomer/article/details/7328590)
- Android Contacts(一)—— 读取联系人
- Android Contacts(一)—— 读取联系人
- (转)Android Contacts(一)—— 读取联系人
- Android Contacts(一)—— 读取联系人
- Android Contacts(一)—— 读取联系人
- Android Contacts(一)—— 读取联系人
- Android Contacts(一)—— 读取联系人
- Android Contacts(一)—— 读取联系人
- Android Contacts(一)—— 读取联系人
- Android源码——通讯录联系人(一):Contacts数据库初识
- Android Contacts(二)—— SMS 短信 与 Contacts 联系人关联
- Android Contacts(二)—— SMS 短信 与 Contacts 联系人关联
- (转)Android Contacts(二)—— SMS 短信 与 Contacts 联系人关联
- Android Contacts(二)—— SMS 短信 与 Contacts 联系人关联
- Android Contacts(二)—— SMS 短信 与 Contacts 联系人关联
- Android Contacts(二)—— SMS 短信 与 Contacts 联系人关联
- Android 学习笔记 Contacts (二)Contacts 联系人详解
- Android 学习笔记 Contacts (二)Contacts 联系人详解
- hibernate使用注解配置过程
- 垂直搜索引擎之简单架构
- linux 终端命令
- Android Application的使用!
- hadoop中带后缀的多路输出part文件
- Android Contacts(一)—— 读取联系人
- C#消息传值
- bit程设 26. Little Bishops uva 861
- str的各种函数原型strcat、strcpy等
- php如何解析xml
- ruby on rails Linux环境配置和部署
- 获取标题栏的高度
- 推荐系统简介
- 内网劫持渗透利器——MITMf指南