How do you solve this problem? I also come across this problem. On Wednesday, September 23, 2009 9:57:10 AM UTC+8, John Landler wrote: > > I read this. > http://developer.android.com/guide/developing/tools/aidl.html > > And I have > * created a MyObject.java which implements Parceable. > * created a MyObject.aidl file which just contains: > > package com.mycompany.mypackage; > > parcelable MyObject; > > * In my IMyService.aidl, I have added > import com.mycompany.mypackage.MyObject; > > * in my Android.mk file, I have added: > LOCAL_SRC_FILES += \ > src/com/mycompany/mypackage/MyObject.aidl \ > src/com/mycompany/mypackage/IMyService.aidl \ > > But when I compile, I get this error: > Aidl: Test <= src/com/mycompany/mypackage//MyObject.aidl > src/com/mycompany/mypackage/MyObject.aidl:19 aidl can only generate > code for interfaces, not parcelables, > src/com/mycompany/mypackage/MyObject.aidl:19 .aidl files that only > declare parcelables don't need to go in the Makefile. > make: *** > [out/target/common/obj/APPS/Test_intermediates/src/src/com/mycompany/mypackage/MyObject.java] > Error 1 > > I appreciate if anyone can help me. > > On Tue, Sep 22, 2009 at 5:12 PM, n179911 <[email protected] <javascript:>> > wrote: > > I have this method in my .aidl file: > > > > void getObjects(out List<MyObject> objList); > > But I get this error > > > > src/com/mycompany/mypackage/ITestService.aidl:26 parameter objList (1) > > unknown type List objList > > > > How to create a List of MyObject in .aidl? > > I know I need to create a Java class MyObject which implements > > Parceable. I just don't know what I need to do in .aidl file. > > > > Thank you. > > > >
-- 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

