Hey Ashesh, I believe the putInt(KEY,Value) method will put a Integer Value into the Bundle Object’s KEY. Just a guess but I think I’m right. Android creates a Bundle Obj but it’s just a empty (I don’t think it’s truly empty at the start - someone confirm) structure of a Map. You find your way around the map using Key/Values pairs. But like an Array you gotta put values into the data Structure so you can use it, which is where that method putInt(Key,Value) comes into play.
[quote]From the book:
A Bundle is a structure that maps string keys to values of certain limited types[/quote]
So savedInstanceState is just a Map that holds Values like ints, strings, other primitive data types, and serialized classes. To find the value you use a Key. In the QuizActivity the “KEY_INDEX” is the KEY (or you could say its Apartment Address) that’s ‘mapped’ (or you could say that Holds) to ‘mCurrentIndex’ the value.