/* * drop & recreate all tables (essentially clears the db of all data) */ private void reset(SQLiteDatabase db) { db.beginTransaction(); try { dropAllTables(db); createAllTables(db); db.setTransactionSuccessful(); } finally { db.endTransaction(); } }