3

After successfully copying the database, I want the application to run an sql statement, placed in the onUpgrade method of the DBHelper.

This is my code (within and Activity) to try and trigger it:

dBHelper = new myCab_DBHelper(this);
Activity_DataExport.this.dBHelper.close();
Activity_DataExport.this.dBHelper.getWritableDatabase();

It is not executing the statement.

I think that is because I access the Database through Content_Providers.

I read this related question and here is mine:

How do I close all open handles to the database? Please post an example, it will be very much appreciated.

:-)

Community
  • 1
  • 1
monn3t
  • 675
  • 1
  • 6
  • 22

0 Answers0