Ishtar wrote:That's.. weird. How about putting your stream in a HashMap, and send the HashMap? Okay, it's not very efficient but it might work.
public Intent putExtra(String name, Object value)
Add extended data to the intent. The name must include a package prefix, for example the app com.google.android.contacts would use names like "com.google.android.contacts.ShowAll".
The name of the extra data, with package prefix.
The data value. Can only be an Integer, String, or HashMap.
Dan Moril(?) from Google wrote:...
A Bundle is functionally equivalent to a standard Map. The reason we didn't
just use a Map is because in the contexts where Bundle is used, the only
things that are legal to put into it are primitives like Strings, ints, and
so on. Because the standard Map API lets you insert arbitrary Objects, this
would allow developers to put data into the Map that the system can't
actually support, which would lead to weird, non-intuitive application
errors. Bundle was created to replace Map with a typesafe container that
makes it explicitly clear that it only supports primitives.
Users browsing this forum: Exabot [Bot] and 3 guests