I\'m trying to create a table of statistics but for some reason, it doesn\'t create until I call StatisticsAdapter.insertEntry() for the first time. After that, I c
StatisticsAdapter.insertEntry()
try to extend SQLiteOpenHelper
SQLiteOpenHelper
override
@Override public void onCreate(SQLiteDatabase database) { database.execSQL(DATABASE_CREATE); }
The database is not actually created or opened until one of getWritableDatabase() or getReadableDatabase() is called.
getWritableDatabase()
getReadableDatabase()