@@ -0,0 +1,1301 @@
+package rnrecord;%0A%0Aimport android.content.Context;%0Aimport android.database.sqlite.SQLiteDatabase;%0Aimport android.database.sqlite.SQLiteOpenHelper;%0Aimport android.util.Log;%0A%0A/**%0A * Created by reweber on 03/01/2017%0A */%0Apublic class RnRecordSQLiteHelper extends SQLiteOpenHelper %7B%0A%0A    private static RnRecordSQLiteHelper mInstance = null;%0A%0A    private static final String DATABASE_NAME = %22rnrecord%22;%0A    private static final int DATABASE_VERSION = 1;%0A%0A    public static RnRecordSQLiteHelper getInstance(Context ctx) %7B%0A%0A        if (mInstance == null) %7B%0A            mInstance = new RnRecordSQLiteHelper(ctx.getApplicationContext());%0A        %7D%0A        return mInstance;%0A    %7D%0A%0A    private RnRecordSQLiteHelper(Context context) %7B%0A        super(context, DATABASE_NAME, null, DATABASE_VERSION);%0A    %7D%0A%0A    @Override%0A    public void onCreate(SQLiteDatabase db) %7B%7D%0A%0A    @Override%0A    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) %7B%0A        if (oldVersion != newVersion) %7B%0A            Log.w(RnRecordSQLiteHelper.class.getName(),%0A                    %22Upgrading database from version %22 + oldVersion + %22 to %22%0A                            + newVersion + %22, which will destroy all old data%22%0A            );%0A            db.execSQL(%22DROP DATABASE%22);%0A            onCreate(db);%0A        %7D%0A    %7D%0A%7D%0A

add SQLiteOpenHelper