Why is my code not pre-populating the database?
My app collects data for experiments. I am trying to pre-populate the database. I create directories for each experiment and store the database in each of those.
Cannot run invalidation tracker. Is the db closed? Android Room ORM
I am using a Room database. I start the database in onCreate and close it in onDestroy. However, when I enter the activity for the second time, I encounter the following error.
As can be seen in the log, after starting Room, I check with the log and I get a false response saying “isOpen”, and there is also a callback in the database. Here, when it is open, it says open. I don’t understand whether it is related to a delay or whether the isOpen() method is running. but after all this it gives me the error in the title