July 2015
Beginner to intermediate
600 pages
18h 59m
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 (Figure 3.14). This app is included with most system images used on the emulator.
Figure 3.14 Finding the Settings app
Launch Settings and select Developer options. Here you will see many possible settings. Turn on the setting labeled Don’t keep activities, as shown in Figure 3.15.
Figure 3.15 Don’t keep activities ...
Read now
Unlock full access