-
Overwrite Existing SQLite DB with new
about 10 years ago
-
almost 10 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 -
-
almost 10 years ago
keep name of new sqlite db same as of old one . it will make u overwrite old db.
-
-
about 10 years ago
Thanks, but DB deleted while opening, so I renamed my new DB then deleted old.
-
-
about 10 years ago
context.deleteDatabase(DATABASENAME);
-

6 Answer(s)