Create the database

^Override public void onCreate(SOLiteDatabase db) {

db.execSOL("CREATE TABLE " + BookTableMetaData.TABLE_NAME + " (" + BookProviderMetaData.BookTableMetaData._ID + " INTEGER PRIMARY KEY," + BookTableMetaData.BOOK_NAME + " TEXT," + BookTableMetaData.BOOK_ISBN + " TEXT," + BookTableMetaData.BOOK_AUTHOR + " TEXT," + BookTableMetaData.CREATED_DATE + " INTEGER," + BookTableMetaData.MODIFIED_DATE + " INTEGER" + ");");

0 0

Post a comment