merlin2049er Well-Known Member Licensed User Longtime User Jan 6, 2014 #1 Just wondering... If I post an app with db files, and other files in the assets. When I go to revise the app and change the revision #, will the android os wipe everything that's install (for that app) and do a clean install of the new app (with the new files, etc...)
Just wondering... If I post an app with db files, and other files in the assets. When I go to revise the app and change the revision #, will the android os wipe everything that's install (for that app) and do a clean install of the new app (with the new files, etc...)
NJDude Expert Licensed User Longtime User Jan 6, 2014 #2 If you include files (like DBs) these will not be copied to the device unless you do it, installing/upgrading an app only installs the executable code. Upvote 0
If you include files (like DBs) these will not be copied to the device unless you do it, installing/upgrading an app only installs the executable code.
merlin2049er Well-Known Member Licensed User Longtime User Jan 6, 2014 #3 Thanks, so instead of using if file exists then copy. I should be copying at all times. I want a fresh copy per installation / upgrade. Code: Copy 'If File.Exists(File.DirDefaultExternal, "tour.db") = 'False Then ' File.Copy(File.DirAssets, "tour.db", 'File.DirDefaultExternal, "tour.db") ' End If File.Copy(File.DirAssets, "tour.db", File.DirDefaultExternal, "tour.db") Upvote 0
Thanks, so instead of using if file exists then copy. I should be copying at all times. I want a fresh copy per installation / upgrade. Code: Copy 'If File.Exists(File.DirDefaultExternal, "tour.db") = 'False Then ' File.Copy(File.DirAssets, "tour.db", 'File.DirDefaultExternal, "tour.db") ' End If File.Copy(File.DirAssets, "tour.db", File.DirDefaultExternal, "tour.db")
NJDude Expert Licensed User Longtime User Jan 6, 2014 #4 Yes, that is if the user is not allowed to save data to the DB, if the DB is part of the app then it will be ok. Upvote 0
Yes, that is if the user is not allowed to save data to the DB, if the DB is part of the app then it will be ok.
merlin2049er Well-Known Member Licensed User Longtime User Jan 6, 2014 #5 Right , the only data the user will enter is some contact info... (to start with, maybe more later on...) oh yeah, and the feedback table. But these are empty after each submission. Last edited: Jan 6, 2014 Upvote 0
Right , the only data the user will enter is some contact info... (to start with, maybe more later on...) oh yeah, and the feedback table. But these are empty after each submission.