I'm facing problem in adding a drawable object to a Parcel object, in order to send an object from one activity to another activity.
There are methods like writeString(String) to add strings to a Parcel object. But do not know how to add a Drawable to the Parcel object.
You cannot add a
Drawableto aParcel, asDrawabledoes not implement theParcelableinterface. Certain types ofDrawablemight implementParcelable, but I am not aware of any.You can put in the
Parcelsome identifier (e.g., drawable resource ID) and have the recipient obtain theDrawableon its own.