Hello,

I am trying to use 'Parcelable' as data type in my aidl file with the
goal of being able to pass any sub-class parcelable object from my
class hierarchy. For example: if classes B & C are derived from A,
then I would like to pass in an object of class A, B, or C in the
valueChanged method based on certain conditions.

The problem is, the aidl file does not compile. The error is
"Parcelable value can't be marshalled". Has anyone encountered this
issue and knows of a solution? Thanks!

import android.os.Parcelable;
oneway interface IRemoteServiceCallback {
    /**
     * Called when the service has a new value for you.
     */
    void valueChanged(in Parcelable value);
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to