Here\'s my code:
String CREATE_DATABASE = \"CREATE TABLE \" + TABLE_NAME + \"(\" + KEY_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" +
In SQLite, a column declared integer primary key will auto increment, so try removing that:
String CREATE_DATABASE = "CREATE TABLE " + TABLE_NAME + "(" + KEY_ID + " INTEGER PRIMARY KEY, " + "title TEXT, "+ "author TEXT, "+ "state TEXT);";
See this answer for reference.