When a list of Recipes is serialized into a Parcel, the current code (in branch ui-group-c) serializes each recipe image. This can create a very large Parcel. Moving the parcel around may fail with an E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! error.
Based on this information, the current code probably exceeds a parcel size limit. It needs a more efficient way to share images.
One way would be to store the images on the file system in the application cache directory, and pass around a URL or path to the files. To identify images correctly, the file name could be based on a hash of the image data.
When a list of Recipes is serialized into a Parcel, the current code (in branch
ui-group-c
) serializes each recipe image. This can create a very large Parcel. Moving the parcel around may fail with anE/JavaBinder: !!! FAILED BINDER TRANSACTION !!!
error.Based on this information, the current code probably exceeds a parcel size limit. It needs a more efficient way to share images.
One way would be to store the images on the file system in the application cache directory, and pass around a URL or path to the files. To identify images correctly, the file name could be based on a hash of the image data.