title: Writing Objects members to Parcels
body: <p>So far I've been chugging along with <code>Parcelable</code> objects without issue, mainly because all of their members have been types that have <code>writeX()</code> methods associated with them. For example, I do:</p>
  
  <pre><code>public String name;
  
  private Foo(final Parcel in) {
      name = in.readString(); }
  public void writeToParcel(final Parcel dest, final int flags) {
      dest.writeString(name); }
  </code></pre>
  
  <p>But now if I have a <code>Bar</code> member things get a little dicey for me:</p>
  
  <pre><code>public Bar bar;
  
  private Foo(final Parcel in) {
      bar = new Bar(); //or i could actually write some constructor for Bar, this is a demo.
      bar.memberString = in.readString();
  }
  
  public void writeToParcel(final Parcel dest, final int flags) {
      // What do I do here?
  }
  </code></pre>
  
  <p>Am I approaching this the wrong way? What should I do in my <code>writeToParcel</code> to parcel member <code>Bar</code>s?</p>