On Fri, Jul 1, 2011 at 4:02 AM, Ali Chousein <[email protected]> wrote:
> I'm trying to do the following:
>
> // I have a Bundle and convert it to string
> Bundle _bundle;
> // Meanwhile I put intergers, booleans etc in _bundle
> String _strBundle = _bundle.toString();
>
> Later in my code I need to create a Bundle from _strBundle. How do I
> do that?

I doubt that's possible. You probably should not have converted into a
string via toString() in the first place.

> So far I couldn't find any information on this. Of course I
> don't wish to parse _strBundle myself and hope that the framework
> already provides a String2Bundle sort of a functionality.

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.

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