In my trials for learning, I came across this example for Loadbitmap function. Obviously, it does not work when I run the code, and compilation error indicate file does not exist. However, What is the File.DirAssets and where is it located? is it on the phone?. Please help, and here is the part of the function
Sub TestFancyText()
Private cs As CSBuilder
cs.Initialize.Size(18).Typeface(Typeface.MONOSPACE)
cs.Image(LoadBitmap(File.DirAssets, "edelweiss.jpg"), 60dip, 40dip, False).Append(" Edelweiss").Append(CRLF)
cs.PopAll
Label1.Text = cs
End Sub
by the way, the compilation error indicates
java.io.FileNotFoundException: /data/data/b4a.example/files/virtual_assets/edelweiss.jpg: open failed: ENOENT (No such file or directory)
So File.DirAssets is translated to /data/data/b4a.example/files/virtual_assets. Is that a folder that I need to create under the project root, or what?
I appreciate your help