

The screen remains visible when the fragment is recreated. IsEditing is saved to ensure that the editing portion of Same random good deed even after process death andīoolean flag set to true when the user begins editing. RandomGoodDeed is saved to ensure that users see the Generated when the fragment is created for the very first time. Seed used for randomly generating a new good deed. User clicks on CANCEL, the EditText view should be cleared and it'sĪ screen might require managing four pieces of data to ensure a seamless


Random text generator app that demonstratesįor this example, assume that once the user presses the edit button, theĪpp displays an EditText view where the user can edit the message.

The string before sending it to a friend: Figure 1. Random string, displays it in a TextView, and provides an option to edit Table 1: Various fragment destructive operations and the effects * NonConfig state can be retained across process death using the Oftentimes Variables are treated the same as SavedState, but theįollowing table distinguishes between the two to demonstrate the effect Repository, or user-created data that is sent to a server once committed.
