package de.reneruck.contactor;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by reneruck on 17/06/15.
 */
public class ContactsOpenHelper extends SQLiteOpenHelper {

    public ContactsOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    private static final int DATABASE_VERSION = 1;
    public static final String CONTACTS_TABLE_NAME = "contacts";
    private static final String CONTACTS_TABLE_CREATE =
            "CREATE TABLE " + CONTACTS_TABLE_NAME + " (" +
                    "_id INTEGER PRIMARY KEY autoincrement," +
                    "firstName TEXT, " +
                    "lastName TEXT," +
                    "email TEXT," +
                    "phonePrivate TEXT," +
                    "phoneWork TEXT);";
    }

    @Override
    public void onCreate(SQLiteDatabase db) {

    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}

@@ -262,169 +262,8 @@
  %7B%0A%0A
-    public ContactsOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) %7B%0A        super(context, name, factory, version);%0A
     
@@ -750,16 +750,135 @@
 TEXT);%22;
+%0A%0A    public ContactsOpenHelper(Context context) %7B%0A        super(context, CONTACTS_TABLE_NAME, null, DATABASE_VERSION);
 %0A    %7D%0A%0A

replace the default constructor with a simpler one and call super() with the table name and version