I just did a quick test following the information in the link I posted
above and it is working for me.

Make sure your aidl file declares the package it's in (like any java class).

Xav

On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet <x...@android.com> wrote:
> oh I missed this message :(
>
> Let me do a quick test...
>
> On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs <ho...@helloandroid.com> wrote:
>>
>> Some more info:
>>
>> - I tried creating an aidl file with the same name as the Parcelable
>> class, and I get an error in the console like: <path to class>/
>> <class>.aidl:1 interface <package>.<class> should be declared in a
>> file called com.aidl. I tried declaring the Parcelable in com.aidl and
>> that didn't work either.
>>
>> - The documentation in 1.5 on AIDL still refers to the "Android Tools
>>> Create Aidl preprocess file for Parcelable classes" which is not
>> available in ADT 0.9.  Should I open a bug for this?
>>
>> Thanks,
>> Zach
>>
>>
>>
>> On Apr 14, 12:52 pm, Zach Hobbs <ho...@helloandroid.com> wrote:
>>> I'm attempting to get build my project with the early preview SDK,
>>> targeting 1.1 and am having problems getting AIDL files to recognize
>>> imports for Parcelables. In the previous ADT you could right click on
>>> your project, hit "Android Tools" and have an option something like
>>> "Generate AIDL for Parcelables".  This would create a file
>>> project.aidl in your project's root containing a line for each
>>> Parceable in your project.
>>>
>>> With the new SDK/ADT anytime I try to import a Parcelable in an AIDL
>>> file I get "Couldn't find import for class ... " even though I still
>>> have the project.aidl file in the project's root.  Also, the option to
>>> generate the AIDL for the Parcelables is no longer available.  Anyone
>>> know how to get your Parcelables noticed in the new SDK?
>>>
>>> Thanks,
>>> Zach
>> >>
>>
>
>
>
> --
> Xavier Ducrohet
> Android Engineer, Google.
>



-- 
Xavier Ducrohet
Android Engineer, Google.

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

Reply via email to