This is how I have it working for my setup:
public int updateLength(String route_length, int route_id){
ContentValues cv = new ContentValues();
cv.put("length", route_length);
return db.update(TABLE_NAME_ROUTE, cv, "id=" + route_id, null );
}
I believe there is a better way to attach the "id=" statement in the third argument of the update but I couldn't get any of these ways to work for me.