public DataBase open() { db = userdatabse.getWritableDatabase(); userdatabse.onCreate(db); Log.d("DB_read", "DB open() :" + db.toString()); return this; }
public void clear_all() { db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); Log.d("DB_read", "db clear_all() : drop table and create again"); userdatabse.onCreate(db); db_dump(); }
@Override public void clean() { db.execSQL("DROP TABLE IF EXISTS " + getTableName()); dbHelper.onCreate(db); }