title: How to pass a parcelable object that contains a list of objects?
body: <p>I have created a <code>Parcelable</code> object below, my object contains a <code>List</code> of Products. In my constructor how do I handle re-creating my <code>Parcelable</code> for the <code>List</code>?</p>
  
  <p>I have checked all of the methods available from the parcel and all that is available is <code>readArrayList(ClassLoader)</code>.  I'm not sure if this is the best approach, your advice would really be appreciated.</p>
  
  <pre><code>public class Outfits implements Parcelable {
  
      private String url;
      private String name;
      private List&lt;Product&gt; products;
  
      public String getUrl() {
          return url;
      }
      public void setUrl(String url) {
          this.url = url;
      }
      public String getName() {
          return name;
      }
      public void setName(String name) {
          this.name = name;
      }
      public List&lt;Product&gt; getProducts() {
          return products;
      }
      public void setProducts(List&lt;Product&gt; products) {
          this.products = products;
      }
  
      public void writeToParcel(Parcel dest, int flags) {
          Log.v("", "writeToParcel..." + flags);
          dest.writeString(url);
          dest.writeString(name);
          dest.writeList(products);
      }
  
  
      public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
          public Outfits createFromParcel(Parcel in) {
              return new Outfits(in);
          }
  
          public Outfits[] newArray(int size) {
              return new Outfits[size];
          }
      };
  
      @Override
      public int describeContents() {
          return 0;
      }
  
      /*** Here how do I populate my List of Products ***/
      private Outfits(Parcel in) {
          url = in.readString();
          name = in.readString();
          products = in.read ???????;
      }
  }
  </code></pre>