Bundle Class in Xamarin.Android |
Posted: February 10, 2016 |
Hello All, In this we will discuss about one of the most important part of the building blocks of Xamarin.Android, and that is Bundle class. A Bundle class. in nothing but a mapping from values of String types to various other types that can be Parcelable. While transitioning between the states of life cycle of an Activity class, there is a built in functionality to save the states of the application or to save certain aspects of our application and that is with the help of Bundle but Bundle can also be used in many other ways as we saw earlier that while calling the OnCreate() Method, we passes a Bundle and one way to check whether your application is just started again or its just a initial run of your application, we can check that by the value of the Bundle which is initially null, when your application runs for the first time.
So Bundle can also be think of a simple ways to save the state data and simple peace of data of primitive types. So for the example of that we can run below code and check the value of the bundle.
To view the Full Blog about Bundle Class in Xamarin.Android visit FindNerd. Also visit Findnerd to read andpost tech blogs and can alsoAsk tech Query over Findnerd.
|
|||||||||||||||||||||||||||||||||||||||||||
|