Hello,
I have an activity which downloads a new version of my database. When finished downloaded (and I can assure you that the new file is properly copied - I see its contents there, with another app), I close my app (just with activity.finish). User is supposed to reload the app, but then I realize that my app is still using the 'old' database. This thing is corrected, if Ι set my device to clear all its RAM contents. Then, we can read the new db. Now, I can understand that the cause of this, is that probably the OS is reading the db from its RAM contents, so I have to tell my clients either to clear RAM or to restart their device. Still, I find it weird. Using all sql.close commands, properly activity.finish to each activity, initializing the db in activity_create (I put a msgbox there, just to be sure that the initialization process, after the db update, is performed) and there it is the 'old' db, sitting in my RAM. Any idea or am I missing something here?
I have an activity which downloads a new version of my database. When finished downloaded (and I can assure you that the new file is properly copied - I see its contents there, with another app), I close my app (just with activity.finish). User is supposed to reload the app, but then I realize that my app is still using the 'old' database. This thing is corrected, if Ι set my device to clear all its RAM contents. Then, we can read the new db. Now, I can understand that the cause of this, is that probably the OS is reading the db from its RAM contents, so I have to tell my clients either to clear RAM or to restart their device. Still, I find it weird. Using all sql.close commands, properly activity.finish to each activity, initializing the db in activity_create (I put a msgbox there, just to be sure that the initialization process, after the db update, is performed) and there it is the 'old' db, sitting in my RAM. Any idea or am I missing something here?