Wednesday, August 29, 2012

Re: [android-developers] Merging Bundles

Ummm... why not just create two bundles as a test case, put some dummy values in them, and look at the behavior of putAll()?  You can do that all in one method...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Aug 29, 2012 at 4:40 PM, Kevin <khantahr@hotmail.com> wrote:
Well no, because I haven't figured out how to get the two bundles in the same place at the same time yet...


On Wednesday, August 29, 2012 3:17:29 PM UTC-7, MagouyaWare wrote:
Have you tried it?  What does it do?  You can probably test the behavior in about 5 minutes....

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Aug 29, 2012 at 4:01 PM, Kevin <khan...@hotmail.com> wrote:
I want to merge two Bundles in my app.  I see that there's a putAll method in the Bundle that I could use.  How does this method handle duplicate keys?  Most of the two bundles will be duplicates, I'm doing the merge to combine the unique data between the two into one single Bundle containing everything.  Does the putAll overwrite, discard, or explode on duplicates?

Thanks.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@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

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

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

No comments:

Post a Comment