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);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {

    }

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

    }
}

@@ -419,16 +419,509 @@
 rsion);%0A
+    private static final int DATABASE_VERSION = 1;%0A    public static final String CONTACTS_TABLE_NAME = %22contacts%22;%0A    private static final String CONTACTS_TABLE_CREATE =%0A            %22CREATE TABLE %22 + CONTACTS_TABLE_NAME + %22 (%22 +%0A                    %22_id INTEGER PRIMARY KEY autoincrement,%22 +%0A                    %22firstName TEXT, %22 +%0A                    %22lastName TEXT,%22 +%0A                    %22email TEXT,%22 +%0A                    %22phonePrivate TEXT,%22 +%0A                    %22phoneWork TEXT);%22;%0A
     %7D%0A%0A 

define database_version, name and sql to create the table