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...
Cool, thanks for sharing mate, GBU
ReplyDelete