Here you can find the source of dropAllViews(SQLiteDatabase sqlitedatabase)
private static void dropAllViews(SQLiteDatabase sqlitedatabase)
//package com.java2s; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; public class Main { private static final String MASTER_COLUMNS[] = { "name" }; private static void dropAllViews(SQLiteDatabase sqlitedatabase) { Cursor cursor = null;/* w ww . j av a 2s . c o m*/ try { String name = null; cursor = sqlitedatabase.query("sqlite_master", MASTER_COLUMNS, "type='view'", null, null, null, null); do { if (!cursor.moveToNext()) break; name = cursor.getString(0); sqlitedatabase.execSQL((new StringBuilder( "DROP VIEW IF EXISTS ")).append(name).toString()); } while (true); } finally { if (null != cursor) { cursor.close(); } } } }