@@ -0,0 +1,1354 @@
+package com.example.georgekaraolanis.project9_habittracker.data;%0A%0Aimport android.content.Context;%0Aimport android.database.sqlite.SQLiteDatabase;%0Aimport android.database.sqlite.SQLiteOpenHelper;%0A%0Aimport com.example.georgekaraolanis.project9_habittracker.data.HabitContract.HabitEntry;%0A%0Apublic class HabitDbHelper extends SQLiteOpenHelper%7B%0A%0A    /*Database file name*/%0A    public static final String DATABASE_NAME = %22habits.db%22;%0A%0A    /*Database version*/%0A    public static final int DATABASE_VERSION = 1;%0A%0A    /*Constructor*/%0A    public HabitDbHelper(Context context)%7B%0A        super(context,DATABASE_NAME,null,DATABASE_VERSION);%0A    %7D%0A%0A    @Override%0A    public void onCreate(SQLiteDatabase db) %7B%0A        /*SQL statement to create table*/%0A        String SQL_CREATE_HABITS_TABLE = %22CREATE TABLE %22 + HabitEntry.TABLE_NAME + %22 (%22%0A                + HabitEntry._ID + %22 INTEGER PRIMARY KEY AUTOINCREMENT, %22%0A                + HabitEntry.COLUMN_HABIT_NAME + %22 TEXT NOT NULL%22%0A                + HabitEntry.COLUMN_HABIT_CATEGORY + %22 INTEGER DEFAULT 4%22%0A                + HabitEntry.COLUMN_HABIT_TIME + %22 TEXT);%22;%0A%0A        /*Execute the statement*/%0A        db.execSQL(SQL_CREATE_HABITS_TABLE);%0A%0A    %7D%0A%0A    @Override%0A    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) %7B%0A        /*Leave empty, there is no newer version of this database*/%0A    %7D%0A%7D%0A

Create SqliteOpenHelper class