title: Android Parcelable: How to read / write string array lists and integer arrays
body: <p>I am having problems trying to write String array lists and integer arrays to parcel.</p>
  <p>this is my class fields</p>
  <pre><code>String uniqueDate;
  ArrayList &lt;String&gt; set1Numbers;
  ArrayList &lt;String&gt; set2Numbers;
  ArrayList &lt;String&gt; UIDs;
  int[] selectedStatus;
  </code></pre>
  <p>This part writes the data to parcel</p>
  <pre><code>public void writeToParcel(Parcel dest, int flags) 
      {
          dest.writeString(uniqueDate);
          dest.writeStringList(set1Numbers);
          dest.writeStringList(set2Numbers);
          dest.writeStringList(UIDs);
          dest.writeIntArray(selectedStatus);
      }
  </code></pre>
  <p>This part reads it. I think the problem is here</p>
  <pre><code>PNItems(Parcel in)
      {
          this.uniqueDate = in.readString();
          in.readStringList(set1Numbers);
          in.readStringList(set2Numbers);
          in.readStringList(UIDs);
          in.readIntArray(selectedStatus);
      }
  </code></pre>
  <p>Can someone please tell me how to do it, I could not find a tutorial on the internet with my problem.</p>