Android Contacts(一)—— 读取联系人
来源:互联网 发布:play for java 编辑:程序博客网 时间:2024/05/29 16:04
转自:http://blog.csdn.net/sunboy_2050/article/details/7328590
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.
Contacts 读取代码:
AndroidManifest.xml 权限
记得在AndroidManifest.xml中加入android.permission.READ_CONTACTS这个permission
<uses-permission android:name="android.permission.READ_CONTACTS" />
运行结果:
代码示例
参考推荐:
Working With Android Contacts
Android Contacts的使用
- 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 联系人详解
- 【openCV】直方图均衡化
- iOS 关于Pch文件的创建及自动获取路径
- 内存溢出 java.lang.OutOfMemoryError: PermGen space解决办法
- C++学习经典书籍
- 数据削重的利器--cuckoo filter
- Android Contacts(一)—— 读取联系人
- PHP PSR-1 基本代码规范
- AngularJS学习笔记
- 我来了,记录些吧
- 安卓应用首次启动白屏的原因总结
- Android自定义组件之日历控件-精美日历实现(内容、样式可扩展)
- linux-shell(3) 后台命令【自己的笔记】
- atoi()函数使用注意事项
- JSP和servlet之间的相对路径和绝对路径