Dear Dianne Hackborn,

Thank you always.
I love your quick & simple answers. :)

By the way,
I have two more questions.

1. Bundle seems the good way.
But is it possible to pass the pair of the data?
Because Map support the iteration, so I can get the data pair in the
right order,
but I am not sure that Bundle can.

2. If I want to pass the Bitmap through AIDL,
is it possible to use Bundle also?
Do I have to convert "Bitmap to ByteArray" ?


Thanks.


On Aug 11, 4:33 am, Dianne Hackborn <[email protected]> wrote:
> I suggest using Bundle.
>
>
>
> On Mon, Aug 9, 2010 at 10:40 PM, QasewKim <[email protected]> wrote:
> > Hi,
> > I am curious about the data types that AIDL can support.
>
> > The document (
> >http://developer.android.com/guide/developing/tools/aidl.html
> > ) says,
> > AIDL can support String, List, Map, etc.
> > But to me, the Map seems that it is not the member of them.
>
> > Here is my code.
> > ====================
> > package my.andr.test
>
> > import android.graphics.Bitmap;
>
> > interface testservice{
> >        int add(String s);  // this is fine
> >        int delete(String s);   // this is fine
>
> >        int addList(in List<String> list); // this is fine
>
> >        int addMap(in Map<String, String> map); // this is not compiled.
> > build error.
> >        int addMap(in Map<int, String> map); // this is not compiled. build
> > error.
> > }
> > ====================
>
> > Is it because of
> > "Generic maps, (e.g. of the form Map<String,Integer>  are not
> > supported. " in the document?
>
> > Then, how can I use the map?
> > I need the Map<int, String> to pass through AIDL.
>
> > Thanks in advance.
>
> > --
> > 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]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
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