Android API之android.content.AsyncQueryHandler
2023-09-14 08:58:31 时间
android.content.AsyncQueryHandler
A helper class to help make handling asynchronous ContentResolver
queries easier.
void android.content.AsyncQueryHandler.startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, String[] selectionArgs, String orderBy)
This method begins an asynchronous query. When the query is done onQueryComplete
is called.
- Parameters:
- token A token passed into
onQueryComplete
to identify the query. - cookie An object that gets passed into
onQueryComplete
- uri The URI, using the content:// scheme, for the content to retrieve.
- projection A list of which columns to return. Passing null will return all columns, which is discouraged to prevent reading data from storage that isn't going to be used.
- selection A filter declaring which rows to return, formatted as an SQL WHERE clause (excluding the WHERE itself). Passing null will return all rows for the given URI.
- selectionArgs You may include ?s in selection, which will be replaced by the values from selectionArgs, in the order that they appear in the selection. The values will be bound as Strings.
- orderBy How to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself). Passing null will use the default sort order, which may be unordered.
protected void onQueryComplete(int token, Object cookie, Cursor cursor)
Overrides: onQueryComplete(...) in AsyncQueryHandler
- Parameters:
- token the token to identify the query, passed in from
startQuery
. - cookie the cookie object passed in from
startQuery
. - cursor The cursor holding the results from the query.
相关文章
- android onresume方法,非静态方法’onResume’Android Studio
- Android 三重缓存
- android进阶之了解Android系统与开机过程
- 测试android sdk是否安装成功,配置Android SDK
- android定时器取消,Android定时器崩溃取消
- android 定时器重置,Android定时器延迟和重置[通俗易懂]
- android短信验证码方案,Android之短信验证码
- 【Android 应用开发】Android 网络编程 API笔记 - java.net 包相关 接口 api
- 【Android 逆向】x86 汇编 ( push / pop 入栈 / 出栈 指令 | ret / retn 函数调用返回指令 | set 设置目标值指令 )
- 【错误记录】Android Studio 中查看 Gradle 配置的方法源码 ( 配置 gradle-wrapper.properties 中版本为 gradle-x.x.x-all.zip )
- 【ijkplayer】编译 Android 版本的 ijkplayer ⑥ ( 进入 ijkplayer-android/android 目录 | 执行 compile-ijk.sh 脚本完成编译 )
- 【Android Gradle 插件】组件化中的 Gradle 构建脚本实现 ⑤ ( 优化 Gradle 构建脚本 | 构建脚本结构 | 闭包定义及用法 | 依赖配置 | android 块配置 )
- [android] 看博客学习Android常见的几种RuntimeException详解手机开发
- [android] 多媒体播放api简介详解手机开发
- android中使用afinal一行代码显示网络图片详解编程语言
- 掌握Oracle数据库API的神奇力量(oracle数据库api)
- Oracle:是否具备API?(oracle有api吗)
- Oracle函数API:能够极大提升编程效率(oracle函数api)
- 数据一步一步学习如何用C API导出MySQL数据(c api导出mysql)
- API连接MySQL数据库实现快速灵活的数据存取(api连mysql数据库)
- Android利用ViewPager实现滑动广告板实例源码
- android中写一个内部类来选择文件夹中指定的图片类型实例说明
- Android音频录制MediaRecorder之简易的录音软件实现代码
- android开发教程之获取使用当前api的应用程序名称
- 基于jQuery的判断iPad、iPhone、Android是横屏还是竖屏的代码
- Android系统设置中的清除数据会清除哪些数据?
- Android入门之TableLayout应用解析(二)
- Android开发之时间日期组件用法实例