After successfully copying the database, I want the application to run the sql statement placed in the onUpgrade method for DBHelper.
This is my code (inside and activity) to try to run it:
dBHelper = new myCab_DBHelper(this);
Activity_DataExport.this.dBHelper.close();
Activity_DataExport.this.dBHelper.getWritableDatabase();
He does not follow the instructions.
I think this is because I access the database through Content_Providers.
I read this question, and here is mine:
How to close all open database descriptors? Please send an example, he will be very grateful.
:-)
source
share