processing-android icon indicating copy to clipboard operation
processing-android copied to clipboard

save(), saveFrame(), saveStrings() don't work

Open emnullfuenf opened this issue 10 years ago • 1 comments

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.

emnullfuenf avatar Sep 10 '15 11:09 emnullfuenf

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.

thijsvb avatar Aug 05 '16 22:08 thijsvb