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.

Getting ready

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

The ...

Get Xamarin Studio for Android Programming: A C# Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.