您需要以
Parcel与编写内容相同的顺序阅读。您正在
this.id首先编写,但是您在读取ID之前尝试读取字符串数组。在构造函数或中颠倒调用的顺序
writeToParcel。
另外,为什么不写每个字符串而不是写一个字符串数组呢?似乎简单得多。
public NewsItem(Parcel in) { in.readInt(); this.name = in.readString(); this.bubble = in.readString(); this.drawable = in.readString(); this.title = in.readString(); this.summary = in.readString(); this.description = in.readString();}@Overridepublic void writeToParcel(Parcel dest, int flags) { dest.writeInt(this.id); dest.writeString(this.name); dest.writeString(this.bubble); dest.writeString(this.drawable); dest.writeString(this.title); dest.writeString(this.summary); dest.writeString(this.description);}


