Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 3. Managing lifecycle and state > Controlling Activity instance state - Pg. 90

90 C HAPTER 3 Managing lifecycle and state Figure 3.8 A logcat output demonstration of the lifecycle methods an activity undergoes after an orientation change Controlling configuration change settings If you don't want your Activity to be destroyed and recreated in its entirety when a configuration change occurs, you can set the android:configChanges attribute in the manifest. This allows you to list the individual types of configuration changes you'll have the Activity handle itself. It's good to be aware of this advanced setting, but you generally shouldn't use this as a substitute for correctly handling configuration