Android examples for Database:Database File
destroy Database
//package com.book2s; import android.content.Context; import android.database.sqlite.SQLiteDatabase; public class Main { public static void destroyDatabase(Context context) { SQLiteDatabase db = context.openOrCreateDatabase("data.db", context.MODE_PRIVATE, null); db.execSQL("DROP TABLE IF EXISTS Projects"); db.execSQL("DROP TABLE IF EXISTS ProjectItems"); db.close();/*from w w w.j av a 2s . co m*/ } }