ContentResolver是通过URI来查询ContentProvider中提供的数据。除了URI以 外,还必须知道需要获取的数据段的名称,以及此数据段的数据类型。

 
如果你需要获取一个特定的记录,你就必须知道当前记录的ID。

 
简要介绍ContentResolver的主要接口,如下:
返回值 函数声明
   final Uri insert (Uri url,
          ContentValues values)

Inserts a row into a table at the given URL.

   final int delete (Uri url,
             String where,
             String[] selectionArgs)

Deletes row(s) specified by a content URI.

 final Cursor query (Uri uri,
            String[] projection,
            String selection,
            String[] selectionArgs,
            String sortOrder)

Query the given URI, returning a Cursor over the result set.

   final int update (Uri uri,
             ContentValues values,
             String where,
             String[] selectionArgs)

Update row(s) in a content URI.

最新文章

  1. 多线程之异步编程: 经典和最新的异步编程模型, IAsyncInfo 与 Task 相互转换
  2. 初识Angular
  3. oracle(sql)基础篇系列(一)——基础select语句、常用sql函数、组函数、分组函数
  4. neutron debug
  5. Fortran 笔记
  6. SQL Server读懂语句运行的统计信息 SET STATISTICS TIME IO PROFILE ON
  7. BZOJ4500: 矩阵
  8. 最大权闭合图最大获益(把边抽象为点)HDU3879
  9. Chart For Asp.Net ----Overview
  10. Ubuntu下fcitx安装。(ibus不会用)
  11. 自己制作 SPx N合1 自动安装盘(x86)
  12. JavaScript Window Screen
  13. hdu1028:整数拆分
  14. ZhuSuan 是建立在Tensorflow上的贝叶斯深层学习的 python 库
  15. apache压力测试工具的apache bench和JMeter的安装
  16. SNMP mib文件说明
  17. mysql 零碎笔记
  18. centos7破解安装fisheye和Crucible
  19. springboot 集成mongodb
  20. RESTful API 设计指南-阮一峰

热门文章

  1. 深入理解java:2.3.6. 并发编程concurrent包 之管理类---线程池
  2. 模板if 的使用
  3. nodejs 和 js
  4. Spring(四)--bean的属性赋值
  5. sqlserver迁移mysql语法修改
  6. 初识MySQL <一>
  7. numpy-查找操作大全
  8. 使用Jenkins结合Gogs和SonarQube对项目代码进行测试、部署、回滚,以及使用keepalived+haproxy调度至后端tomcat
  9. 一种在获取互斥锁陷入阻塞时可以被中断的 lock
  10. 使用CefSharp在.NET中嵌入Google kernel