Friday, July 1, 2011

Re: [android-developers] Bundle.toString() and then create a Bundle from String

On Fri, Jul 1, 2011 at 7:29 AM, Mark Murphy <mmurphy@commonsware.com> wrote:
> Bundles are Parcelables, meaning they are designed to marshaled to and
> from byte arrays, not strings. You are welcome to take a byte array
> and create a string representation of it and convert it back that way.

Actually, I take that back -- don't convert it to a string.
Parcelables are not meant to be durable, so I'm not sure that you will
be able to successfully convert the string to a Bundle by way of the
byte array.

I suspect that, rather than a Bundle, you should be using some other
sort of data structure.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 3.5 Available!

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate