ActiveAndroid icon indicating copy to clipboard operation
ActiveAndroid copied to clipboard

Dynamically loading new database file

Open comann opened this issue 11 years ago • 0 comments

I had a generic question with regards to loading a database dynamically. Here is the scenario,

  1. User logs into the app
  2. The application pulls a .db file from a remote server and copies it locally to the name provided in the the application manifest.
  3. The application starts a pending intent for a 3 seconds into the future to restart the application
  4. This instance of the application terminates
  5. App reloads with the new database, and ActiveAndroid is working flawlessly.

My question, is there a way to tell ActiveAndroid framework to reinitialize with the newly created .db file without restarting the application?

comann avatar Jul 16 '15 12:07 comann