ViMeAv ICT Member Licensed User Longtime User May 18, 2021 #1 Suddenly the dirassets folder is not created when i reinstall the release apk. I deleted the old version (12) and hereby the dirassets folder was deleted automatically. Then I installed the new version (15) but no dirassets folder was created. What can be the problem?
Suddenly the dirassets folder is not created when i reinstall the release apk. I deleted the old version (12) and hereby the dirassets folder was deleted automatically. Then I installed the new version (15) but no dirassets folder was created. What can be the problem?
JordiCP Expert Licensed User Longtime User May 18, 2021 #2 Have you checked if the "assets" folder and files are there if you unzip your apk? Upvote 0
DonManfred Expert Licensed User Longtime User May 18, 2021 #3 I guess it is only created if you use B4X: Copy #DebuggerForceStandardAssets: true Assets is a virtual folder Upvote 0
I guess it is only created if you use B4X: Copy #DebuggerForceStandardAssets: true Assets is a virtual folder
ViMeAv ICT Member Licensed User Longtime User May 18, 2021 #4 JordiCP said: Have you checked if the "assets" folder and files are there if you unzip your apk? Click to expand... Yes, they are in the apk file. Upvote 0
JordiCP said: Have you checked if the "assets" folder and files are there if you unzip your apk? Click to expand... Yes, they are in the apk file.
ViMeAv ICT Member Licensed User Longtime User May 18, 2021 #5 Error Message : java.io.FileNotFoundException: /storage/emulated/0/Android/data/storemgr.b4a/files/book_open.png: open failed: ENOENT (No such file or directory) Upvote 0
Error Message : java.io.FileNotFoundException: /storage/emulated/0/Android/data/storemgr.b4a/files/book_open.png: open failed: ENOENT (No such file or directory)
JordiCP Expert Licensed User Longtime User May 18, 2021 #6 ViMeAv ICT said: Error Message : java.io.FileNotFoundException: /storage/emulated/0/Android/data/storemgr.b4a/files/book_open.png: open failed: ENOENT (No such file or directory) Click to expand... That error message doesn't necessarily imply that the Assets folder (or any other) does not exist. Most probably it is the file which is not found. Perhaps a mispelling error or that the file name needs to be all lower-case (Android is case-sensitive)? You can always check the real contents with File.ListFiles(File.DirAssets) Upvote 0
ViMeAv ICT said: Error Message : java.io.FileNotFoundException: /storage/emulated/0/Android/data/storemgr.b4a/files/book_open.png: open failed: ENOENT (No such file or directory) Click to expand... That error message doesn't necessarily imply that the Assets folder (or any other) does not exist. Most probably it is the file which is not found. Perhaps a mispelling error or that the file name needs to be all lower-case (Android is case-sensitive)? You can always check the real contents with File.ListFiles(File.DirAssets)
ViMeAv ICT Member Licensed User Longtime User May 19, 2021 #7 The Assets folder was not the problem. The copy to folder didn't exist. I had to copy a file in it, to create, it seems. B4X: Copy Dim testfolder As String = rp.GetSafeDirDefaultExternal("") File.WriteString(testfolder,"test.txt","aaa") Upvote 0
The Assets folder was not the problem. The copy to folder didn't exist. I had to copy a file in it, to create, it seems. B4X: Copy Dim testfolder As String = rp.GetSafeDirDefaultExternal("") File.WriteString(testfolder,"test.txt","aaa")
JordiCP Expert Licensed User Longtime User May 19, 2021 #8 ViMeAv ICT said: The Assets folder was not the problem Click to expand... Upvote 0