For some reason, my return statement returns a long as opposed to a boolean, can't progress to test anything unless this is resolved. I have no idea why it is even doing this. Tried everything within the scope of my knowledge, hence why I am here.
Looked at some other people's examples before I posted and they seemed to use the same return statement as I have, with no issue.
public boolean updateDatabase(String Name) {
SQLiteDatabase db = this.getWritableDatabase();
ContentValues args = new ContentValues();
args.put(COL_1, Name);
return db.insert(TABLE_NAME, null, args);
db.close();
}
Aucun commentaire:
Enregistrer un commentaire