In my android application I am using sqlite database. I use the following code to update data but the data is not updated.
public int setCurrentLevel(int level)
{
//update table level set currentlevel = level;
int slevel = level;
Log.d("QUIZ APP", "inside on setcreatelevel is "+slevel);
ContentValues args = new ContentValues();
args.put("currentlevel", slevel);
return db.update("level", args, "currentlevel" + ">=" + slevel, null);
}
ContentValuesfor update. Have a look at this blog and use their example appcurrentlevel>= slevel.