[android-developers] Re: SQLite DROP Database

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

[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 supkic...@gmail.com wrote:

[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-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

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Macarse
On Tue, Jul 14, 2009 at 6:17 PM, Mark Murphymmur...@commonsware.com 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 |

[android-developers] Re: SQLite DROP Database

2009-07-14 Thread Kumaravel Kandasami
my intention: 1. Create a database android.database.sqlite.SQLiteOpenHelper.getWritableDatabasehttp://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html#getWritableDatabase%28%29 () 2. Create tables and insert rows.

[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 http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html#getWritableDatabase%28%29() 2. Create tables and insert rows.

[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 kumaravel.kandas...@gmail.com wrote:  How to drop a database in Android SDK? Did not see any methods in

[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 database name 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