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.database.sqlite.SQLiteDatabase.execSQL
>       
> <http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#execSQL%28java.lang.String,%20java.lang.Object%5B%5D%29>("CREATE
>       TABLE ...")
>    3. User decides to start from fresh.
>       Drop all the data, table etc and start from step 1.
> 
> 
> I don't see any SDK API to do step (3).

Do DROP TABLE statements to match the CREATE TABLE statements, using
SQLiteDatabase#execSQL().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, $35/Year

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to