java.lang.IllegalStateException: attempt to re-open an already-closed object: or Attempt to reopen an already-closed object sqlitedatabase or Room attempt to re-open an already closed database.
Problem:- The problem is that you are doing a long or large Database operation in Database than that connect frequently to the database. My Case problem:- I was getting java.lang.IllegalStateException: attempt to re-open an already-closed object:--- in this code below. I also Insert Data and creating Table all at the same time. Problem code:- private void create_database () { Thread thread = new Thread (() -> { main_db = openOrCreateDatabase ( ClsGlobal . Database_Name , MODE_PRIVATE , null ); // In this createCityMaster i am also inserting city //name's. createCityMaster (); // In this createStateMasteri am also inserting State // name's. createStateMaster (); createSizeMaster (); createUnitMaster (); createCustomerMaster (); createEmailLogs (); createInventoryDetail (); cr...
useful!
ReplyDeleteUseful
ReplyDeleteKing Casino Login | All your games online and - Community Khabar
ReplyDeleteLogin King Casino, Play, and Win! Login King Casino, Play. Login King Casino, https://jancasino.com/review/merit-casino/ Play. Login King Casino, Play. Login communitykhabar King Casino, 1xbet korean Play. septcasino Login King Casino, Play. Login King Casino,