There's a space missing between KEY_SCORE
and its type in your database creation SQL. Also the ;
at the end is misplaced. Change to:
db.execSQL("CREATE TABLE " + DATABASE_TABLE + " ( " +
KEY_ROWID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +
KEY_SCORE + " INTEGER NOT NULL);");
After fixing it, uninstall your app so the database gets recreated. Your onUpgrade()
has also syntax problems so it's no good just upgrading the database version.
It's also a good habit to log exceptions to learn what's wrong with the code. Computers are much better than humans in detecting syntax problems.