Slide 31
Slide 31 text
Content provider (3)
31
public static int markStatus(Context context,
String localId, Status status) {
ContentValues values = new ContentValues();
String where = DBHelper.COL_UUID + " = ?";
String[] selectionArgs = new String[]{
String.valueOf(localId)
};
values.put(DBHelper.COL_STATUS, status.ordinal());
return context.getContentResolver().update(
MyContentProvider.CONTENT_URI_MYRESOURCE,
values,
where,
selectionArgs
);
}