Code example for InvalidKeySpecException

Methods: printStackTrace

0
            // TODO Auto-generated catch block 
            e.printStackTrace();
        } catch (InvalidKeySpecException e)
        { 
            // TODO Auto-generated catch block 
            e.printStackTrace();
        } 
 
    } 
 
    @Override 
    public void onCreate(SQLiteDatabase db)
    { 
        String CREATE_USER_PREF_TABLE = "CREATE TABLE " + TABLE_USER_CONTACT + "(" + KEY_ID + " INTEGER PRIMARY KEY AUTOINCREMENT," + KEY_USERNAME
                + " TEXT," + KEY_NAME + " TEXT," + KEY_EMAIL + ")";
        db.execSQL(CREATE_USER_PREF_TABLE);
 
    } 
 
    @Override 
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)