I am using greenDAO and I have successfully generated all necessary classes and entities and I can see that my table has been created, however after putting breakpoints on the line to replace, I get an error telling me "No such table exists error".
try {
appTimeUsageDao.insertOrReplace(appStats);
//} catch (DaoException e) {
} catch (Exception e) {
Log.e("Error", "Some exception occurred", e);
Log.e("APP_TAG", Log.getStackTraceString(e));
}
SQLiteOpenHelper helper = new DaoMaster.DevOpenHelper(getApplicationContext(), Globals.DatabaseName, null); DaoMaster master = new DaoMaster(helper.getWritableDatabase()); daoSession = master.newSession(); appTimeUsageDao = DeviceInsightApp.getSession(this, true).getAppTimeUsageDao();
Thats what I have in my code and I am not sure why I am getting the error – Theater