[android-developers] Fragment question on the use of the arguments bundle

2011-02-13 Thread davemac
I think I understand the logic behind using Bundles to pass in and store values associated with a Fragment, but I wondered if someone could validate my understanding. I believe that it makes sense to use a Bundle to pass in initial values at the time of construction of a Fragment for a number of

Re: [android-developers] Fragment question on the use of the arguments bundle

2011-02-13 Thread Dianne Hackborn
Actually the big reason for using a Bundle is because this needs to be saved as part of the saved instance state of the activity. The Bundle class provides a data structure that is Parcelable (can be saved) and automatically takes care of the marshalling/unmarshalling for you (so the app