title: How to define parcelable of interface type in .aidl file?
body: <p>I have an .aidl file that defines a single parcelable of an interface type, let's say</p>
  
  <pre><code>parcelable MyInterface;
  </code></pre>
  
  <p>Whereby MyInterface is a java interface declared in MyInterface.java that extends the Parcelable interface. The android parcelable mechanism requires me to define a static CREATOR in the parcelable class. But how can I do this for an interface since the interface class does not know the concrete implementation and therefor cannot implement the createFromParcel() method?</p>
  
  <p>How will the android runtime decide which CREATOR (from which subclass) to call? Is it even impossible to use an interface type in an .aidl file? </p>