电子商务网站建设试题答案,成功案例 品牌网站,网站设计制作什么时候好,网页浏览器在线使用ContentResolver是通过URI来查询ContentProvider中提供的数据。除了URI以 外#xff0c;还必须知道需要获取的数据段的名称#xff0c;以及此数据段的数据类型。 如果你需要获取一个特定的记录#xff0c;你就必须知道当前记录的ID。 简要介绍ContentResolver的主要接口还必须知道需要获取的数据段的名称以及此数据段的数据类型。 如果你需要获取一个特定的记录你就必须知道当前记录的ID。 简要介绍ContentResolver的主要接口如下 返回值函数声明 final Uriinsert (Uri url, ContentValues values) Inserts a row into a table at the given URL. final intdelete (Uri url, String where, String[] selectionArgs) Deletes row(s) specified by a content URI. final Cursorquery (Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) Query the given URI, returning a Cursor over the result set. final intupdate (Uri uri, ContentValues values, String where, String[] selectionArgs) Update row(s) in a content URI. 转载于:https://www.cnblogs.com/yedushusheng/p/4333921.html