Changes

Jump to: navigation, search
The Bundle Class
== The Bundle Class ==
The Bundle class provides a container for storing data using a key-value pair mechanism. The keys take the form of string values, whilst the values associated with those keys can be in the form of a primitive value or any object that implements the Android Parcelable interface. A wide range of classes already implements the Parcelable interface. Custom classes may be made “parcelable” by implementing the set of methods defined in the Parcelable interface (details of which can be found in the Android documentation at [http://developer.android.com/reference/android/os/Parcelable.html http://developer.android.com/reference/android/os/Parcelable.html)].
The Bundle class also contains a set of methods that can be used to get and set key-value pairs for a variety of data types including both primitive types (including Boolean, char, double and float values) and objects (such as Strings and CharSequences).

Navigation menu