Activity Lifecycle: Viewing Android’s Activity Lifecycle

Activity Lifecycle is one of the earliest Android apps I wrote, to allow me to see the lifecycle callbacks, in the order they happen.

Questions you could ask

  • What happens when the device is rotated?

  • What happens when switching between apps?

  • What difference is there, when switching between activities, if you enable “Don’t keep activities” in the developer options?

  • Is onActivityResult(…) called before, between or after onStart(…) and onResume(…)?

  • And many more.

Screenshot of Activity Lifecycle showing lifecycle events
Activity Lifecycle Events


It was originally written in Java and then converted to Kotlin. It was my first adventure with RecyclerView, Crashlytics, AdMob, Dagger, Google Analytics, Firebase Analytics, Ads and Crash Reporting.

Get it on Gogle Play