数据:ContentResolver类
2024-10-07 06:42:41
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. |
最新文章
- 多线程之异步编程: 经典和最新的异步编程模型, IAsyncInfo 与 Task 相互转换
- 初识Angular
- oracle(sql)基础篇系列(一)——基础select语句、常用sql函数、组函数、分组函数
- neutron debug
- Fortran 笔记
- SQL Server读懂语句运行的统计信息 SET STATISTICS TIME IO PROFILE ON
- BZOJ4500: 矩阵
- 最大权闭合图最大获益(把边抽象为点)HDU3879
- Chart For Asp.Net ----Overview
- Ubuntu下fcitx安装。(ibus不会用)
- 自己制作 SPx N合1 自动安装盘(x86)
- JavaScript Window Screen
- hdu1028:整数拆分
- ZhuSuan 是建立在Tensorflow上的贝叶斯深层学习的 python 库
- apache压力测试工具的apache bench和JMeter的安装
- SNMP mib文件说明
- mysql 零碎笔记
- centos7破解安装fisheye和Crucible
- springboot 集成mongodb
- RESTful API 设计指南-阮一峰
热门文章
- 深入理解java:2.3.6. 并发编程concurrent包 之管理类---线程池
- 模板if 的使用
- nodejs 和 js
- Spring(四)--bean的属性赋值
- sqlserver迁移mysql语法修改
- 初识MySQL <;一>;
- numpy-查找操作大全
- 使用Jenkins结合Gogs和SonarQube对项目代码进行测试、部署、回滚,以及使用keepalived+haproxy调度至后端tomcat
- 一种在获取互斥锁陷入阻塞时可以被中断的 lock
- 使用CefSharp在.NET中嵌入Google kernel