Parcelable protocol requires a Parcelable.Creator object called CREATOR (I do have CREATOR)

Parcelable.Creator object called CREATOR

Parcel is a serialization mechanism provided by Android. In order to write an object to a Parcel, that object should implement the interface “Parcelable“. I start implemantation with Parceble and after implemantation i got below error Parcelable protocol requires a Parcelable.Creator object called CREATOR (I do have CREATOR)

SOLUTION my dear friends you are not maintain the sequence in parcel in method writeToParcel you first put String but in Constructor you take first integer it is not valid in android, I have give you code which makes correct order to…