Does updating an app overwrite DirInternal files?

andymc

Well-Known Member
Licensed User
Longtime User
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?
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
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

enrico

Active Member
Licensed User
Longtime User
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

enrico

Active Member
Licensed User
Longtime User
B4X:
 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
Top