tags:

views:

349

answers:

1

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?

Thank you.

A: 

Import MyObject, even if it is in same package.

bhatt4982
I did try adding import com.mycompany.MyObject; in the ITestService.aidl file.But I get this compiler error:No private recovery resources for TARGET_DEVICE genericAidl: TestApps <= src/com/mycompany/service/ITestService.aidlsrc/com/mycompany/service/ITestService.aidl:21: couldn't find import for class com.mycompany.MyObject
n179911
Need more information. Can you please edit your question and add some more code snippets? I need to know your code structure.
bhatt4982