title: How to implement parcelable for List<Long>
body: <p>I'm trying to pass a List in my parcelable doing:</p>
  
  <pre><code>public class MetaDados implements Parcelable {
  
  private List&lt;Long&gt; sizeImages;
  
  public MetaDados(List&lt;Long&gt; sizeImages){
  this.sizeImages = sizeImages;
  }
  
  public List&lt;Long&gt; getSizeImages() {
          return sizeImages;
      }
  
      public void setSizeImages(List&lt;Long&gt; sizeImages) {
          this.sizeImages = sizeImages;
      }
  
  @Override
      public int describeContents() {
          // TODO Auto-generated method stub
          return 0;
      }
  
  @Override
      public void writeToParcel(Parcel dest, int flags) {
  dest.writeList(sizeImages);
  }
  
      public static final Parcelable.Creator&lt;MetaDados&gt; CREATOR = new Parcelable.Creator&lt;MetaDados&gt;() {
          @Override
          public MetaDados createFromParcel(Parcel in) {
              return new MetaDados(in);
          }
  
          @Override
          public MetaDados[] newArray(int size) {
              return new MetaDados[size];
          }
      };
  
  private MetaDados(Parcel in) {
  //HERE IS THE PROBLEM, I'VE tried this:
  
  sizeImages = in.readList(sizeImages, Long.class.getClassLoader());
  
  //but what i got: Type mismatch: cannot convert from void to List&lt;Long&gt;
  }
  }
  </code></pre>