I\'m working with databases and I have the following DataBaseHandling class:
public class DatabaseHandler extends SQLiteOpenHelper {
// All Static variables
//
Autoincrement KEY_ID
or put some data to KEY_ID
as well as put your full log cat here:
String CREATE_MEASURES_TABLE = "CREATE TABLE " + TABLE_MEASURES + "("
+ KEY_ID + " INTEGER PRIMARY KEY AUTOINCREMENT," + KEY_DATE + " TEXT,"
+ KEY_TIME_HOUR + " INTEGER NOT NULL," + KEY_TIME_MINUTE
+ " INTEGER NOT NULL," + KEY_BE_INTAKE + " REAL NOT NULL,"
+ KEY_GLUCOSE + " REAL NOT NULL," + KEY_BOLUS
+ " REAL NOT NULL," + KEY_BASAL + " REAL NOT NULL" + ")";