Code example for SQLiteDatabase

Methods: update

0
			count = db.update(TABLE_NAME, values, where, whereArgs);
			break; 
		case MESSAGE_ID:
			String segment = url.getPathSegments().get(1);
			rowId = Long.parseLong(segment);
			count = db.update(TABLE_NAME, values, "_id=" + rowId, null);
			break; 
		default: 
			throw new UnsupportedOperationException("Cannot update URL: " + url);
		} 
 
		infoLog("*** notifyChange() rowId: " + rowId + " url " + url);
 
		getContext().getContentResolver().notifyChange(url, null);
		return count;
 
	} 
 
	private static void infoLog(String data) {
		if (LogConstants.LOG_INFO) { 
Contextual code suggestions in your IDE  Get Codota for Java