This line:
final FileOutputStream outputStream = new FileOutputStream(name);
results in a FileNotFoundException
with the message being /2ozjfFQzwv: open failed: EROFS (Read-only file system)
where "2ozjfFQzwv" is what I passed as the name of the file.
I have tried this with and without the WRITE_INTERNAL_STORAGE
permission. How do I create this file for writing?
Alternatively, I just want to be able to give an image to a new activity, and it is too large to serialize it in an extra. Is there an easier way than writing it to a file then reading from it again? All the questions on here seem to be about writing to an SD card, which I don't want to do because many people don't have SD card slots.