How can I refresh/reopen an SQLite database after restoring it, when using a singleton for the database helper
问题 I have incorporated Database Backup and restore in my App. This all works fine except that when I restore the database, due to the use of a singleton DBHelper along with only closing the database when the App closes, the in-memory copy of the Database continues to be used after the restore. Closing the App and re-starting uses the new database. However, rather than tell the user to do this. I would like to seamlessly access the restored database. This is the code that detects and then reports