Given a custom class org.example.app.MyClass implements Parcelable, I want to write a List to a Parcel. I did the marshalling with>
org.example.app.MyClass implements Parcelable
List
I believe a more correct form of this would be:
List myclassList = new ArrayList(); parcel.readList(myclassList, MyClass.class.getClassLoader());
Because here you are explicitly using the class loader for the List's generic type.