I can't figure out how to reset the database connection in my app. I am deleting and replacing the SQLite database file, and need my activity to see the changes.
+1
A:
In what way won't your activity see the changes? I would assume that if you are rebuilding the database from within the code then your activity already knows that the database has changed. Could you clarify what you are doing and what you are expecting to happen that isn't?
Zulaxia
2010-08-29 08:20:32
The problem was, I wasn't deleting the db in a new activity. If you do it in a new activity, then come back to the activity that uses it, then it will 'see' the changes. It's because the db connection is made when the activity starts.
Scienceprodigy
2010-09-14 19:04:56