[android-developers] Re: SQLite DROP Database

2009-07-15 Thread Steve
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, "

[android-developers] Re: SQLite DROP Database

2009-07-15 Thread Kumaravel Kandasami
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 wrote: > > > http://developer.android.com/reference/android/co

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread john
uninstall the application On 7月15日, 下午1時07分, Saurav Mukherjee wrote: > if have rights to the shell, then u can jus try this: > rm > > On Wed, Jul 15, 2009 at 2:44 AM, Kumaravel Kandasami < > > > > kumaravel.kandas...@gmail.com> wrote: > >  How to drop a database in Android SDK? > > > Did not se

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Saurav Mukherjee
if have rights to the shell, then u can jus try this: rm On Wed, Jul 15, 2009 at 2:44 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.S

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Craig
http://developer.android.com/reference/android/content/ContextWrapper.html#deleteDatabase%28java.lang.String%29 On Jul 15, 7:14 am, Kumaravel Kandasami wrote: >  How to drop a database in Android SDK? > > Did not see any methods in android.database.sqlite.SQLiteOpenHelper or > android.database.s

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Mark Murphy
Kumaravel Kandasami wrote: > my intention: > >1. Create a database > android.database.sqlite.SQLiteOpenHelper.getWritableDatabase > > () >2. Create tables and inser

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Kumaravel Kandasami
my intention: 1. Create a database android.database.sqlite.SQLiteOpenHelper.getWritableDatabase () 2. Create tables and insert rows. android.database.sqlite.SQLiteDatab

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Macarse
On Tue, Jul 14, 2009 at 6:17 PM, Mark Murphy wrote: > > Kumaravel Kandasami wrote: >>  How to drop a database in Android SDK? > > AFAIK, you don't drop a database. At most, you delete its file. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Waresc

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Mark Murphy
Kumaravel Kandasami wrote: > How to drop a database in Android SDK? AFAIK, you don't drop a database. At most, you delete its file. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-