Trying to figure out how to load a .png file. I used part of Erel's example code for B4XImageViewExample and someone's listfolders test.b4j program. Thanks!
K:\FlashCards\Example\B4XImageViewExample\B4J\Files
B4XImageView1.Load(File.DirAssets, "1.png")
This is just a simple program to show png files from screenshots of a video course I took to help me study.
The file structure on my PC is K:\AGC\lesson1\"multiple Screentshots.png" & K:\AGC\lesson2\"multiple Screentshots.png"
I wanted to select a SubDirectory of Screenshots for each Lesson and then scroll through each screen shot.
Each SubDirectory has mutiple screenshots... .
IE K:\AGC\Automation\Screenshot (659).png ... K:\AGC\Automation\Screenshot (660).png ... K:\AGC\Automation\Screenshot (661).png
I am using B4XImageView1.Load(SubDir, myFile)
The file location is built correctly. But I get an error when trying to load the file.
java.io.FileNotFoundException: K:\AGC\Automation\Screenshot (659).png (The filename, directory name, or volume label syntax is incorrect)
I could move all the individual screenshots to the files folder of the project. But I have 300+ screenshot and wanted to keep them separated by the Sub Directories.
I checked the forums and could not find out how to keep/use a Sub Directory structure in the Files Section of the B4J Project. Or load each one directly from my hard drive.
Hopefully this makes sense. Any one know what I am doing wrong ?
K:\FlashCards\Example\B4XImageViewExample\B4J\Files
B4XImageView1.Load(File.DirAssets, "1.png")
This is just a simple program to show png files from screenshots of a video course I took to help me study.
The file structure on my PC is K:\AGC\lesson1\"multiple Screentshots.png" & K:\AGC\lesson2\"multiple Screentshots.png"
I wanted to select a SubDirectory of Screenshots for each Lesson and then scroll through each screen shot.
Each SubDirectory has mutiple screenshots... .
IE K:\AGC\Automation\Screenshot (659).png ... K:\AGC\Automation\Screenshot (660).png ... K:\AGC\Automation\Screenshot (661).png
I am using B4XImageView1.Load(SubDir, myFile)
The file location is built correctly. But I get an error when trying to load the file.
java.io.FileNotFoundException: K:\AGC\Automation\Screenshot (659).png (The filename, directory name, or volume label syntax is incorrect)
I could move all the individual screenshots to the files folder of the project. But I have 300+ screenshot and wanted to keep them separated by the Sub Directories.
I checked the forums and could not find out how to keep/use a Sub Directory structure in the Files Section of the B4J Project. Or load each one directly from my hard drive.
Hopefully this makes sense. Any one know what I am doing wrong ?