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 MainActivity.java file in the code editor, if it is not opened for you by default, by left-clicking on the MainActivity tab above the editor.

Note

If the previous steps were not detailed enough, check back to any of the previous ...

Get Android Programming for Beginners now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.