Parcelable inheritance in aidl
===

I want something like below in .aidl and use them in an android service.

    abstract class sharp implements Parcelable {
    }

    class rect extends sharp {
    }

    interface IsharpMgr {
        sharp get();
    }


In order to do this, the sharp class have to implements Parcelable. It is easy to override writeToParcel in rect but how should I add the "public static final Parcelable.Creator" in sharp?

in gen/IsharpMgr.java, that creator is called via sharp->Creator.createFromParcel. It's a static filed so I could not override it in rect.

Thanks.