app/src/main/java/com/yahala/SQLite/ContactsDao.java
/**
     * Creates the underlying database table.
     */
Creates the underlying database table.
Creates the underlying database table .
public static void createTable(SQLiteDatabase db, boolean ifNotExists) {
        String constraint = ifNotExists ? "IF NOT EXISTS " : "";
        db.execSQL("CREATE TABLE " + constraint + "'CONTACTS' (" + 
                "'uid' INTEGER PRIMARY KEY AUTOINCREMENT ," +  0: id
                "'JID' TEXT," +  1: jid
                "'FNAME' TEXT," +  2: fname
                "'SNAME' TEXT," +  3: sname
                "'AVATAR' TEXT);");  4: avatar
    }
public static void createTable ( SQLiteDatabase db , boolean ifNotExists ) { String constraint = ifNotExists ? "IF NOT EXISTS " : "" ; db . execSQL ( "CREATE TABLE " + constraint + "'CONTACTS' (" + "'uid' INTEGER PRIMARY KEY AUTOINCREMENT ," + "'JID' TEXT," + "'FNAME' TEXT," + "'SNAME' TEXT," + "'AVATAR' TEXT);" ) ; }
Creates the underlying database table.
Creates the underlying database table .
// // 0: id // 1: jid // 2: fname // 3: sname // 4: avatar