In which task and step of the codelab can this issue be found?
4. Explore lifecycle use cases
Describe the problem
Following the steps to move the app to the background ( being it by pressing the back button or the home button ) is triggering the onDestroy callback. Tested on 2 fresh emulators with enough memory.
Steps to reproduce?
- Start the app on an AS emulator
- Follow the steps to move the app to the background
- See that onDestroy is called
Versions
Android Studio version: Iguana
API version of the emulator: 34 and 28