Hi,
I am trying to load an image in to a panel. When a button is pushed, the image appears on the panel, simple enough.
It compiles fine, but when I run it, I get a directory or file not found error:
java.io.FileNotFoundException: /C:\Users\Shaun\Documents\b4a\interfacestuff\Files/cam0077.jpg: open failed: ENOENT (No such file or directory)
The file is in the correct directory. Any clue why I am getting this errror?
Thanks
I am trying to load an image in to a panel. When a button is pushed, the image appears on the panel, simple enough.
B4X:
Dim bg As BitmapDrawable
bg.Initialize(LoadBitmap(File.DirAssets, "cam0077.jpg"))
bg.Gravity = Gravity.FILL
pnlImages.Background = bg
It compiles fine, but when I run it, I get a directory or file not found error:
java.io.FileNotFoundException: /C:\Users\Shaun\Documents\b4a\interfacestuff\Files/cam0077.jpg: open failed: ENOENT (No such file or directory)
The file is in the correct directory. Any clue why I am getting this errror?
Thanks