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.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)Bitmap换背景颜色
  2. Frist Android
  3. android实现好看的自定义提示框
  4. Android异步线程OkHttp Post请求Json数据
  5. android加载效果,带百分比的
  6. Porting Android
  7. android 检测是否有网络连接
  8. android 拨号
  9. android强制弹出键盘
  10. Android(安卓)TextToSpeech语音播放文本