Just did something like this today -- mCtx is a reference to the
context --

    public void deleteDatabase() {
      mDbHelper.close();
      mDb.close();
      if (mCtx.deleteDatabase(DATABASE_NAME)) {
        Log.d(TAG, "deleteDatabase(): database deleted.");
      } else {
        Log.d(TAG, "deleteDatabase(): database NOT deleted.");
      }
    }

On Jul 15, 3:09 am, Kumaravel Kandasami
<kumaravel.kandas...@gmail.com> wrote:
> Awesome Craig, exactly what I was looking. I will let you know whether it
> worked.
>
> Kumar    _/|\_www.saisk.com
> ku...@saisk.com
> "making a profound difference with knowledge and creativity..."
>
>
>
> On Tue, Jul 14, 2009 at 11:36 PM, Craig <supkic...@gmail.com> wrote:
>
> >http://developer.android.com/reference/android/content/ContextWrapper...
>
> > On Jul 15, 7:14 am, Kumaravel Kandasami
> > <kumaravel.kandas...@gmail.com> wrote:
> > >  How to drop a database in Android SDK?
>
> > > Did not see any methods in android.database.sqlite.SQLiteOpenHelper or
> > > android.database.sqlite.SQLiteDatabase classes.
>
> > > Any suggestion is appreciated.
>
> > > Kumar    _/|\_www.saisk.com
> > > ku...@saisk.com
> > > "making a profound difference with knowledge and creativity..."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to