At the bottom right of the B4A development screen, I clicked on "Files" (the folder icon), then clicked on the "Add Files" button, then added a file, say, "MyFile", which I then saw listed above.
Next, I successfully compiled the program but as soon as it began to run, it stopped on the 'Initialize' line of the following code:
Dim Fil as RandomAccessFile
If Not(File.Exists(File.DirRootExternal,"MyFile")) then
Fil.Initialize(File.DirAssets,"MyFile"True)
. . .
The error message was
"Last Exception java.io.FileNotFoundException:/AssetsDir/MyFile(No such file or directory)".
I have seen problems like this on other posts but still don't have an answer.
I only need to add a file to the APK for later reading by my app.
Can someone help with this?
Next, I successfully compiled the program but as soon as it began to run, it stopped on the 'Initialize' line of the following code:
Dim Fil as RandomAccessFile
If Not(File.Exists(File.DirRootExternal,"MyFile")) then
Fil.Initialize(File.DirAssets,"MyFile"True)
. . .
The error message was
"Last Exception java.io.FileNotFoundException:/AssetsDir/MyFile(No such file or directory)".
I have seen problems like this on other posts but still don't have an answer.
I only need to add a file to the APK for later reading by my app.
Can someone help with this?