I am trying to make my first Android app. I noticed that the SQLiteOpenHelper.onCreate()
method is not called to create tables if the database not exists. Howev
I have also had trouble with the SQLiteOpenHelper. What worked for me was storing a member variable
SQLiteDatabase db;
In the SQLiteOpenHelper subclass and calling
db = getWritableDatabase();
in the constructor.
The answer to this question also includes helpful information: SQLiteOpenHelper failing to call onCreate?
I hope this helps!