title: Extending Parcelable to read another Parcelable
body: <p>I have a class that extends Parcelable, we'll call it Class A.</p>
  
  <p>I have another class that extends Parcelable, we'll call it Class B.</p>
  
  <p>One of the member variables of A is an ArrayList of Class B objects.</p>
  
  <p>I'm trying to write the Parcelable overrides, but can't figure out how to save and read the ArrayList of Class B.</p>
  
  <p>There are methods to read and write ArrayLists, but they want a parameter which is a ClassLoader and I am unfamiliar with it.  I could also copy the ArrayList into an array and user the methods to read and write a Parcelable array, but this also requires a ClassLoader parameter.</p>
  
  <p>Update:</p>
  
  <p>It looks like </p>
  
  <pre><code>in.readTypedList(mList, ClassB.CREATOR);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>out.writeTypedList(mList);
  </code></pre>
  
  <p>are what I'm looking for?</p>