I had similar problem and my solution was:
parcel.writeString(this.questionType.name());
and for reading :
this.questionType = QuestionType.valueOf(parcel.readString());
QuestionType
is enum and remember that ordering of elements matters.
I had similar problem and my solution was:
parcel.writeString(this.questionType.name());
and for reading :
this.questionType = QuestionType.valueOf(parcel.readString());
QuestionType
is enum and remember that ordering of elements matters.