Android Question Can't access asset file

tsteward

Well-Known Member
Licensed User
Longtime User
Last night my app was working fine. Today I get the following error.

My code is: And has not changed. The file is still in the file list in the ide.
B4X:
DBFileDir = rp.GetSafeDirDefaultExternal("") 'File.DirDefaultExternal
If FirstTime Then
        If File.Exists(DBFileDir, "helper.db") = False Then
            File.Copy(File.DirAssets, "helper.db", DBFileDir, "helper.db")
       End If
 

tsteward

Well-Known Member
Licensed User
Longtime User
For some reason uninstalling the app and reinstalling it fixed it.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…