This will not work, I believe, based on one line that you gave.
If we look at the signature of the method call:
update(String table, ContentValues values, String whereClause, String[] whereArgs)
So:
ContentValues cv=new ContentValues(); cv.put(colName, new Integer(1)); String[] items = new String []{String.valueOf(Z_ID)} db.update( tableName, cv, Z_ID + "=?", items );
You code looks something like this?
Your array of elements should match the where clause. Another example would look something like this:
ContentValues cv=new ContentValues(); cv.put(salesColName, new Integer(4534)); String whereClause = "band=? and album=?"; String whereArgs = new String [] { "U2", "Joshua Tree" }; db.update( tableName, cv, whereClause , whereArgs);
source share