processing-android
processing-android copied to clipboard
save(), saveFrame(), saveStrings() don't work
When i am using save(), saveFrame(), saveStrings() there's no file written and no error is raised.
This snipped works:
File storageDir = Environment.getExternalStorageDirectory();
String fileName = new File(storageDir, "/Pictures/" + "p5.jpg").getAbsolutePath();
println(fileName);
image.save(fileName);
But i couldn't get a stringWriter working this way.
I have a similar problem using this code:
String folder = Environment.getExternalStorageDirectory().getAbsolutePath()+"/folder/";
String filename = new File(folder, "file.png").getAbsolutePath();
save(filename);
This does create a the file in the correct folder, but the file is 0 bytes.