O'Reilly logo

Android Programming for Beginners by John Horton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required