Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.database.sqlite.SQLiteDatabase;

public class Main {
    private static void createContactTable(SQLiteDatabase db) {
        String TABLE_CREATE = "create table if not exists CONTACT ("
                // + "_ID INTEGER PRIMARY KEY AUTOINCREMENT,"
                + "USER_ID TEXT PRIMARY KEY," + "NAME TEXT," + "COUPLE TEXT," + "JOB TEXT," + "AVATARPATH TEXT,"
                + "PHONE TEXT," + "ADDRESS TEXT," + "MAIL TEXT," + "DATE TEXT," + "WEBSITE TEXT," + "OTHER TEXT"
                + ");";

        db.execSQL(TABLE_CREATE);
    }
}