The lifecycle demonstration app
This quick experiment will help familiarize ourselves with the lifecycle methods our app uses, as well as give us a chance to play around with a bit more Java code:
- Start a new project and call it
Lifecycle Demonstration. Of course, the code is in the download bundle in the
Chapter 6/Lifecycle Demonstrationfolder should you wish to refer to it or copy and paste it.
- Accept the default target devices.
- Choose Blank Activity and don't worry about customizing the activity options at all.
- Open the
MainActivity.javafile in the code editor, if it is not opened for you by default, by left-clicking on the MainActivity tab above the editor.
If the previous steps were not detailed enough, check back to any of the previous ...
Get Android Programming for Beginners now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.