O'Reilly logo

Xamarin Studio for Android Programming: A C# Cookbook by Mathieu Nayrolles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required