title: Pass ArrayList<? implements Parcelable> to Activity
body: <p>I have searched a few topics but not found a solution to my problem. </p>
  
  <pre><code>public class Series implements Parcelable {
  private String name;
  private int numOfSeason;
  private int numOfEpisode;
  
  /** Constructors and Getters/Setters have been removed to make reading easier **/
  
  public Series(Parcel in) {
      String[] data = new String[3];
      in.readStringArray(data);
      this.name = data[0];
      this.numOfSeason = Integer.parseInt(data[1]);
      this.numOfEpisode = Integer.parseInt(data[2]);
  }
  
  
  @Override
  public int describeContents() {
      return 0;
  }
  
  @Override
  public void writeToParcel(Parcel dest, int flags) {
      dest.writeStringArray(new String[] { this.name,
              String.valueOf(this.numOfSeason),
              String.valueOf(this.numOfEpisode) });
  
  }
  
  private void readFromParcel(Parcel in) {
      name = in.readString();
      numOfSeason = in.readInt();
      numOfEpisode = in.readInt();
  }
  
  public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
      @Override
      public Series createFromParcel(Parcel in) {
          return new Series(in);
      }
  
      @Override
      public Series[] newArray(int size) {
          return new Series[size];
      }
  };
  </code></pre>
  
  <p>}</p>
  
  <p>In my MainActivity I have an ArrayList. To make the list dynamically editeable I need to pass it to another activity where I can edit it.</p>
  
  <pre><code>ArrayList&lt;Series&gt; listOfSeries = new ArrayList&lt;Series&gt;();
  
      public void openAddActivity() {
      Intent intent = new Intent(this, AddActivity.class);
      intent.putParcelableArrayListExtra(
              "com.example.episodetracker.listofseries",
              (ArrayList&lt;? extends Parcelable&gt;) listOfSeries);
      startActivity(intent);
  }
  </code></pre>
  
  <p>I need to cast the list, otherwise Eclipse gives me the following Error message.
  <strong>The method putParcelableArrayListExtra(String, ArrayList) in the type Intent is not applicable for the arguments (String, List)</strong></p>
  
  <p>Is this the correct way to do it?</p>
  
  <pre><code>    ArrayList&lt;Series&gt; list = savedInstanceState
              .getParcelableArrayList("com.example.episodetracker.listofseries");
  </code></pre>
  
  <p>This is the way I try to read the data in another activity.</p>
  
  <p>It's crashing on the line above. namely the getParcelableArrayList part. </p>