Build: Lifecycle Demo Screen
This screen shows messages on the screen each time an activity lifecycle method is called. It helps you see when onCreate, onStart, onResume, onPause, onStop, and onDestroy happen.
Target UI
------------------------- | Lifecycle Demo Screen | |-----------------------| | Messages: | | - onCreate called | | - onStart called | | - onResume called | | | | (Messages update live) | -------------------------
Display a TextView that updates with the name of the lifecycle method called
Override all six lifecycle methods: onCreate, onStart, onResume, onPause, onStop, onDestroy
Each method appends its name to the TextView on a new line
Use setContentView with a simple layout containing only the TextView
Ensure the TextView scrolls if messages get too long