Can you please tell me how to insert value in database. I just started development in android don\'t have much experience.
I just create one class information<
The first error is because of the extra comma you have put inside the createTable string after the last column definition KEY_NAME+" TEXT,"
String createTable= "CREATE TABLE " + TABLE_Name+"("
+ KEY_ID + " INTEGER PRIMARY KEY AUTOINCREMENT," + KEY_NAME + " TEXT,"
+ ")";
the correct form is as follow :
String createTable= "CREATE TABLE " + TABLE_Name+"("
+ KEY_ID + " INTEGER PRIMARY KEY AUTOINCREMENT," + KEY_NAME + " TEXT"
+ ")";