app/src/main/java/com/client/models/FriendsDao.java
public static void createTable(SQLiteDatabase db, boolean ifNotExists) {
        String constraint = ifNotExists? "IF NOT EXISTS ": "";
        db.execSQL("CREATE TABLE " + constraint + "\"FRIENDS\" (" + //
                "\"_id\" INTEGER PRIMARY KEY ," + // 0: id
                "\"USERNAME\" TEXT NOT NULL ," + // 1: Username
                "\"PIC\" BLOB NOT NULL );"); // 2: Pic
    }
/** 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 + "\"FRIENDS\" (" + 
                "\"_id\" INTEGER PRIMARY KEY ," +  0: id
                "\"USERNAME\" TEXT NOT NULL ," +  1: Username
                "\"PIC\" BLOB NOT NULL );");  2: Pic
    }
public static void createTable ( SQLiteDatabase db , boolean ifNotExists ) { String constraint = ifNotExists ? "IF NOT EXISTS " : "" ; db . execSQL ( "CREATE TABLE " + constraint + "\"FRIENDS\" (" + "\"_id\" INTEGER PRIMARY KEY ," + "\"USERNAME\" TEXT NOT NULL ," + "\"PIC\" BLOB NOT NULL );" ) ; }
Creates the underlying database table.
Creates the underlying database table .
// // 0: id // 1: Username // 2: Pic