Going through state-saving management
If you paid attention to the
OnCreate() method, you certainly must have noticed that we can restore data from a data structure named
bundle when activities are put in the forefront after being killed or destroyed by the OS. However, at this time, we have not yet provided the mechanism to be used in order to save this data inside the
Bundle data structure. In this recipe, we will show you how to manage the saving/loading methods and properties of the bundle.
Just as the earlier recipes of this chapter, the only requirement is to have Xamarin Studio or the Xamarin plugin for Visual Studio up and running and a successful understanding of the concepts covered in previous recipes.
How to do it...