Using ORMLite v 4.40, I try to run the application, but it seems to ignore the onCreate function
My DatabaseHelper looks like this (fragment style)
public class ORMLiteHelper extends OrmLiteSqliteOpenHelper { private Context databaseContext; private static String DATABASE_NAME = "InVinoVeritas"; private static int DATABASE_VERSION = 1; public ORMLiteHelper(Context context) { super (context, DATABASE_NAME, null, DATABASE_VERSION); Log.v("ORMLiteHelper", "Cosntructor"); ... @Override public void onCreate(SQLiteDatabase database, ConnectionSource connectionSource) { Log.v("DatabaseHelper", "onCreate"); ... @Override public void onUpgrade(SQLiteDatabase database, ConnectionSource connectionSource, int oldVersion, int newVersion) { Log.v("DatabaseHelper", "onUpgrade"); ...
My MainActivity calls DatabaseHelper as described:
public class MainActivity extends OrmLiteBaseActivity<ORMLiteHelper> {
I tried reinstalling the application by updating the database version, nothing works. I see a constructor call (including typo :-), however onCreate and onUpgrade are not called.
Any help appreciated
Barry
barrel
source share