title: How to write List<> into parcel
body: <pre><code>public class Category implements Parcelable {
  
      private int mCategoryId;
      private List&lt;Video&gt; mCategoryVideos;
  
   public int getCategoryId() {
          return mCategoryId;
      }
  
      public void setCategoryId(int mCategoryId) {
          this.mCategoryId = mCategoryId;
      }
  
   public List&lt;Video&gt; getCategoryVideos() {
          return mCategoryVideos;
      }
  
      public void setCategoryVideos(List&lt;Video&gt; videoList) {
          mCategoryVideos = videoList;
      }
  
  @Override
      public void writeToParcel(Parcel parcel, int i) {
          parcel.writeInt(mCategoryId);
          parcel.writeTypedList(mCategoryVideos);
      }
  
      public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
          public Category createFromParcel(Parcel parcel) {
              final Category category = new Category();
  
              category.setCategoryId(parcel.readInt());
              category.setCategoryVideos(parcel.readTypedList()); */// **WHAT SHOULD I WRITE HERE***
  
              return category;
          }
  
          public Category[] newArray(int size) {
              return new Category[size];
          }
      };
  
  }
  </code></pre>
  
  <p>Im my code I am using model which implements from parcelable...Could anyone tell em what shout I write in this line <code>category.setCategoryVideos(parcel.readTypedList())</code>
  I couldn't find any helpful post.</p>
  
  <p>EDIT: <code>category.setCategoryVideos(parcel.readTypedList(mCategoryVideos,Video.CREATOR));</code> in here mCategoryVideos I have cannot resolve error.</p>