-
Overwrite Existing SQLite DB with new
almost 9 years ago
-
over 7 years ago
Did you make changes in the onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) method in the DB class. If not please check to drop the existing table and create a new one or modifiy the exisiting table -
-
over 8 years ago
keep name of new sqlite db same as of old one . it will make u overwrite old db.
-
-
almost 9 years ago
Thanks, but DB deleted while opening, so I renamed my new DB then deleted old.
-
-
almost 9 years ago
context.deleteDatabase(DATABASENAME);
-
6 Answer(s)