May 2022
Intermediate to advanced
688 pages
20h 12m
English
In this chapter, you added CheatActivity and learned how the Android OS manages your activities through ActivityManager. You also saw what happens to each of your activities when you press the Back button while they are in the foreground: When you press Back from CheatActivity, it is popped off the back stack and removed from system memory. But when you press Back from MainActivity, it is only moved to the background – it still exists in memory, though it is not visible in its created state. The same happens with MainActivity when you press the Home button to temporarily leave the activity, as you did in the section called Temporarily leaving an activity in Chapter 3 ...
Read now
Unlock full access