How do I ensure that my read-only text file (300map.txt) in my Files folder get copied to
Android/data/b4a.AppName/files
when I Run[for Release]?
Initially/successfully I put the 300map.txt file in same project folder as the .b4a file,
then, in the b4a files tab, I use the [Add Files] button, and [sync] button
which copies it to the "Files" sub folder. (but note upper case F).
If I manually copy the 300map.txt onto the targets Android/data/b4a.AppName/files folder my app finds it OK in File.DirDefaultExternal. So I AM looking in the right place.
Also the AppName.APK file does NOT copy the 300map.txt to the target, at least, not on ONE attempt.
When I run[debug(rapid)] a compressed 300map.txt DOES appear in the files/virtual_assets folder.
I think the IDE is getting the upper/lower casing wrong for the 'files' or 'Files' folder. The IDE seems to display upper case for the first letter of some files and folders which may be cosmetic, but it is worrying and confusing. Also if I call the 300map.txt file 't300map.txt', the IDE displays it as 'T300map.txt' which is scarey because android is fussy about case, and it is not clear which name is used where.
My B4a version is 4.30. My Android version is 4.4.4. My target device is Sony Xperia Z.
Is the 'Files' folder supposed to be 'files' on the target.
(Edit: Corrected; Android/data.b4a.AppName/files -> Android/data/b4a.AppName/files)
Android/data/b4a.AppName/files
when I Run[for Release]?
Initially/successfully I put the 300map.txt file in same project folder as the .b4a file,
then, in the b4a files tab, I use the [Add Files] button, and [sync] button
which copies it to the "Files" sub folder. (but note upper case F).
If I manually copy the 300map.txt onto the targets Android/data/b4a.AppName/files folder my app finds it OK in File.DirDefaultExternal. So I AM looking in the right place.
Also the AppName.APK file does NOT copy the 300map.txt to the target, at least, not on ONE attempt.
When I run[debug(rapid)] a compressed 300map.txt DOES appear in the files/virtual_assets folder.
I think the IDE is getting the upper/lower casing wrong for the 'files' or 'Files' folder. The IDE seems to display upper case for the first letter of some files and folders which may be cosmetic, but it is worrying and confusing. Also if I call the 300map.txt file 't300map.txt', the IDE displays it as 'T300map.txt' which is scarey because android is fussy about case, and it is not clear which name is used where.
My B4a version is 4.30. My Android version is 4.4.4. My target device is Sony Xperia Z.
Is the 'Files' folder supposed to be 'files' on the target.
(Edit: Corrected; Android/data.b4a.AppName/files -> Android/data/b4a.AppName/files)
Last edited: