andymc Well-Known Member Licensed User Longtime User Nov 30, 2012 #1 My app checks if a file exist when you open it, then either reads from the file or creates a new one. But when a user updates my app with a new version when I upload to the appstore, will the new version overwrite the files in the DirInternal folder?
My app checks if a file exist when you open it, then either reads from the file or creates a new one. But when a user updates my app with a new version when I upload to the appstore, will the new version overwrite the files in the DirInternal folder?
margret Well-Known Member Licensed User Longtime User Nov 30, 2012 #2 No, the update will not overwrite files unless your code copies a file over top of another file. It will replace any items in the assets folder, etc. As long as your own code does not write over any current files you should be good to go. Upvote 0
No, the update will not overwrite files unless your code copies a file over top of another file. It will replace any items in the assets folder, etc. As long as your own code does not write over any current files you should be good to go.
andymc Well-Known Member Licensed User Longtime User Nov 30, 2012 #3 Great, thanks for the quick response Upvote 0
NeoTechni Well-Known Member Licensed User Longtime User Dec 2, 2012 #4 It will however delete your external files on some devices running 2.2 I recommend including the option to change which directory you store settings in on the SD Card, if you use the SD card at all Upvote 0
It will however delete your external files on some devices running 2.2 I recommend including the option to change which directory you store settings in on the SD Card, if you use the SD card at all
Erel B4X founder Staff member Licensed User Longtime User Dec 3, 2012 #5 It will however delete your external files on some devices running 2.2 Click to expand... The problem is with File.DirDefaultExternal. It is a bug on some 2.2 devices. Upvote 0
It will however delete your external files on some devices running 2.2 Click to expand... The problem is with File.DirDefaultExternal. It is a bug on some 2.2 devices.
E enrico Active Member Licensed User Longtime User Dec 12, 2013 #6 In the android 2.2 emulator I have this problem. Database is overwritten reinstalling or upgrading the app. I thought that it could be the problem with File.DirDefaultExternal, but changing to File.DirInternal its the same. Upvote 0
In the android 2.2 emulator I have this problem. Database is overwritten reinstalling or upgrading the app. I thought that it could be the problem with File.DirDefaultExternal, but changing to File.DirInternal its the same.
Erel B4X founder Staff member Licensed User Longtime User Dec 13, 2013 #7 Make sure that it is not your code that overwrites the database. Upvote 0
E enrico Active Member Licensed User Longtime User Dec 13, 2013 #8 Code: Copy If FirstTime Then If File.Exists(DBFileDir, DBUserData) = False Then DBFileDir = DBUtils.CopyDBFromAssets(DBUserData) End If End If With other android versions I don't have the problem Upvote 0
Code: Copy If FirstTime Then If File.Exists(DBFileDir, DBUserData) = False Then DBFileDir = DBUtils.CopyDBFromAssets(DBUserData) End If End If With other android versions I don't have the problem
Erel B4X founder Staff member Licensed User Longtime User Dec 15, 2013 #9 Note that you do not need to call File.Exists here as it is done internally in CopyDBFromAssets. It might be a bug in your device. The internal folder should not be deleted during installation. Upvote 0
Note that you do not need to call File.Exists here as it is done internally in CopyDBFromAssets. It might be a bug in your device. The internal folder should not be deleted during installation.