Example #1
0
 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);
   }
 }
Example #2
0
 @Override
 public void onCreate() {
   super.onCreate();
   sContext = this;
   sDb = LiteOrm.newSingleInstance(this, DB_NAME);
   if (BuildConfig.DEBUG) {
     sDb.setDebugged(true);
   }
 }