public static void createDb(Context _activity, String DB_NAME) { DB_NAME = DB_NAME + ".db"; if (liteOrm == null) { liteOrm = LiteOrm.newCascadeInstance(_activity, DB_NAME); liteOrm.setDebugged(true); } }
@Override public void onCreate() { super.onCreate(); sContext = this; sDb = LiteOrm.newSingleInstance(this, DB_NAME); if (BuildConfig.DEBUG) { sDb.setDebugged(true); } }