Parcelable Inheritance issue with getCreator of heir class
问题 I have a parcelable class A and B that extends A Example: The class A public abstract class A implements Parcelable { private int a; protected A(int a) { this.a = a; } public int describeContents() { return 0; } public static Creator<A> getCreator() { return CREATOR; } public static final Parcelable.Creator<A> CREATOR = new Parcelable.Creator<A>() { public A createFromParcel(Parcel in) { return new A(in); } public A[] newArray(int size) { return new A[size]; } }; public void writeToParcel