There is an object that you want to write to the file.
An object consists of the following fields:
private Organization organization; private int status = -1; private Drawable photo; private ByteArrayInputStream avatar; when trying to serialize, I get an error:
java.io.NotSerializableException: java.io.ByteArrayInputStream java.io.NotSerializableException: java.io.BitmapDrawable Tell me how can you save such an object to a file? Or into which you can convert images (mostly Drawable), so that they can be saved.