I am a beginner in this field and I need help to finish a simple application (obviously not simple for me).
My database looks like this:
And my method in the DatabaseHelper is:
public void EditList(User user)
{
db.execSQL( "UPDATE " + TABLE_USER + " SET " + DOLIST + "='" + user.getDoList() + "' WHERE " + USERNAME + " LIKE "+"'"+user.getUsername()+"'");
}
I tried this but my app keeps crashing when I click the button that activates this method. Here is my project if somebody wants to take a look (18mb): https://drive.google.com/open?id=1_Mz1JLlWD2Lm2XoGNdj1lCFXbxRmEw2a Any help is appreciated.