I\'m trying to insert and retrieve data from database in eclipse using sqlite, but it shows a RuntimeError
. I create a layout with three edit texts and one button t
Also fixe this
public void onCreate(SQLiteDatabase db) {
data=db;
db.execSQL("CREATE TABLE " + TABLE_NAME + " ("
+ NAME + " TEXT,"
+ FATHER_NAME + " TEXT,"
+ MOTHER_NAME + " TEXT"
+ ");");
Log.d("DATABASE OPERATION", "TABLE CREATED");
}
for "INTEGER,"
remove ,.
and intialise it like this DBHelper.
DBHelper DB=new DBHelper(MainActivity.this);