On Jul 16, 6:52 pm, Dianne Hackborn <[email protected]> wrote: > Just use ArrayList<Parcelable> as your data type. >
Putting List<Parcelable> in my aidl file resulted in the following errors: "The method writeBinderList(List<IBinder>) in the type Parcel is not applicable for the arguments (List<Parcelable>)" for this line in the automatically generated Proxy: _data.writeBinderList(conditionList); "Type mismatch: cannot convert from ArrayList<IBinder> to List<Parcelable>" for this line: _arg0 = data.createBinderArrayList(); in the onTransact method of the Stub Apparently the AIDL compiler thinks a List<Parcelable> is a List<IBinder>? I ended up just making it a List with no type at all, and verifying the type in the service implementation. This works for me. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

