March 2013
Beginner to intermediate
580 pages
16h 11m
English
If you are overriding onSaveInstanceState(Bundle), you should test that your state is being saved and restored as expected. This is easy to do on the emulator.
Start up a virtual device. Within the list of applications on the device, find the Settings app. This app is included with most system images used on the emulator.
Figure 3.15 Finding the Settings app

Launch Settings and select Development options. Here you will see many possible settings. Turn on the setting labeled Don’t keep activities.
Figure 3.16 Don’t keep activities selected
Now run your app and press the Home button. Pressing ...
Read now
Unlock full access