Chapter 6. The Life and Times of an Android App

In this short chapter, we will look at the lifecycle of an Android app. At first, it might sound a bit strange that a computer program has a lifecycle, but it will soon make sense. We will see the phases an app goes through, from creation to destruction, and how this helps us know where to put our Java code, depending on what we are trying to achieve.

In brief, we will look at:

  • An introduction to the Android lifecycle
  • What method overriding @Override is
  • The phases of the Android lifecycle
  • What exactly we need to know and do to code our apps
  • A lifecycle demonstration mini app
  • A quick look at code structure, ready to get Java coding in the next chapter

Let's start learning about the Android lifecycle.

Introduction ...

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.