title: Android Parcelable and Serializable
body: <p>So i know it is recommended to use Parcelable instead of Serializable in android, because it is faster.</p>
  
  <p>My question is: is that impossible to avoid using Serializable right?</p>
  
  <p>If I have a custom object i want to serialize, let's say I have the following class definition</p>
  
  <pre><code>public class Person {
     String name;
     int Age;
     ...
     ....
  }
  </code></pre>
  
  <p>Making this parcelable is easy, because the Person class contains the types parcel.write*() supports, i.e. there is parcel.writeString and parcel.writeInt</p>
  
  <p>Now, what if the Person class is the following:</p>
  
  <pre><code>public class PersonTwo {
     MyCustomObj customObj;
     String name;
     int Age;
     ...
     ....
  }
  </code></pre>
  
  <p>How am I suppose to parcel the MyCustomObj object??
  It seems I need to use serializable again? but again, I thought it is SLOW to use serializable, and seems we have no choice but to use it in this case.</p>
  
  <p>I don't understand</p>
  
  <p>can someone tell me how I would parcel PersonTwo in this case?</p>