Back to project page SQLite-Simple-Android.
The source code is released under:
Apache License
If you think the Android project SQLite-Simple-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package garin.artemiy.sqlitesimple.example; /* ww w .j a va2 s . co m*/ import android.app.Application; import garin.artemiy.sqlitesimple.example.models.InternalRecord; import garin.artemiy.sqlitesimple.example.models.Record; import garin.artemiy.sqlitesimple.library.SQLiteSimple; import garin.artemiy.sqlitesimple.library.util.SimpleDatabaseUtil; /** * author: Artemiy Garin * date: 13.12.12 */ public class MainApplication extends Application { public static final String DATABASE_NAME = "test.sqlite"; @Override public void onCreate() { super.onCreate(); if (SimpleDatabaseUtil.isFirstApplicationStart(this)) { SQLiteSimple databaseSimple = new SQLiteSimple(this); databaseSimple.create(Record.class); SQLiteSimple internalSimple = new SQLiteSimple(this, DATABASE_NAME); internalSimple.create(InternalRecord.class); } } }