I’m working on an android processing app with APDE and have an issue.
When I save a PImage, with save(), with a valid file path it works.
However if I make that filepath string from a string of my text entry box, it doesn’t work, even if it is the same string (according to print() ).
I get a
java.io.FileNotFoundException: Invalid file path
The will happen whether the file at the listed path exists or not, and with a hard-coded string it will create the file if there is none.
String path = "/storage/emulated/0/MyApp/"; pimage.save(path+"imageName"+".png");
String path = "/storage/emulated/0/MyApp/"; pimage.save(path+"imageName"+key+".png");
I’ve created a video showing the issue in depth here.
I’m not sure what could be causing it, maybe an issue of individual chars within the string having different formats? I’m not sure, I ran out of possible leads so I’ve come here for help.