On Wed, Aug 11, 2010 at 7:13 PM, QasewKim <[email protected]> wrote:

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

Thanks.  Many people don't seem to appreciate them. :)


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

I'm not really sure what you mean by "right order", but Bundle.keySet()
returns all of the keys as a set you can iterate over.  I think this is
something you should try to avoid though, since it is relatively inefficient
-- if you want to be able to handle N number of items, just stick in an
array or list of the objects.


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

You don't need to do that.  Bitmap is Parcelable, so you can just stick it
in the Bundle as a Parcelable object.  Do please be sure to keep the bitmap
small, and keep the number going through the call small.

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