I have an activity which updates person info
i want to know if there is a way to update only the non null values and the rest you leave it the same here is my update function
public boolean modifierMember (String nom ,String prenom ,String tel,String profile ,String etat,int id ){
SQLiteDatabase db = this.getWritableDatabase();
ContentValues contentValues = new ContentValues();
contentValues.put(COL_2,nom);
contentValues.put(COL_3,prenom);
contentValues.put(COL_4,tel);
contentValues.put(COL_5,profile);
contentValues.put(COL_k, etat);
db.update(TABLE_Membre,contentValues,"IDM=?",new String[]{Integer.toString(id)});
return true;
}