Anatomy of an app: An introduction to activity lifecycles

This post explains the Android app lifecycle — showing how an activity will progress through multiple stages as it is open, sent to the background, and then brought to the foreground again.