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:

  1. Start a new project and call it Lifecycle Demonstration. Of course, the code is in the download bundle in the Chapter 6/Lifecycle Demonstration folder should you wish to refer to it or copy and paste it.
  2. Accept the default target devices.
  3. Choose Blank Activity and don't worry about customizing the activity options at all.
  4. Open the file 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.