There are a number of known issues right now with this aspect of the
system, that will be fixed in an upcoming SDK:

- Application-defined Parcelable and Serializable classes don't work
when used in the Intent given to startActivity().  (They should work
in Bundles in other places.)

- We originally had a larger set of basic types that were supported,
including int[], but removed them with the misguided idea of relying
more on standard Java serialization.  It turns out this imposes much
more overhead than we really want, so a suite of APIs for putting
arrays and of fundamental types will be included.

On Mar 25, 3:57 pm, Diego Pino <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I ve been trying to pass an array of Integers to an Activity via an
> Intent. I explored putExtra/getParcelableArrayExtra but no success.
> Finally, I decided to serialize my array to a bundle and send it using
> putExtras. On the target activity I used getExtras for retrieving the
> bundle and then unserializing it to an array.
>
> It works fine but it adds a significant overhead to my app. There
> should be a more elegant/better approach to do this. Any suggestions?
>
> br
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to