Code example for ContentResolver

Methods: update

        ContentValues values = new ContentValues();
        values.put(Video.VideoColumns.BOOKMARK, Integer.toString(bookmark));
        try { 
            mContentResolver.update(mUri, values, null, null);
        } catch (SecurityException ex) {
            // Ignore, can happen if we try to set the bookmark on a read-only 
            // resource such as a video attached to GMail. 
        } catch (SQLiteException e) {
            // ignore. can happen if the content doesn't support a bookmark 
            // column. 
        } catch (UnsupportedOperationException e) {
            // ignore. can happen if the external volume is already detached. 
    public void onPause() {