Possible Solutions:
- You have
not committed the transactionsyou have started (You should
always close the transaction once you started) - Check whether you have closed the cursors you have opened if you are
usingSqlite(Looks like you have done this step from the code you posted) - Also move the
db.closetofinallyblock - You have not called
db.closeon a database before deleting it withcontext.deleteDatabase(...)and then recreating it withdbHelper.getWritableDatabase()