Activity Lifecycle in Android

Activity provides a number of lifecycle callback methods that allow it to know that a state has changed from being created to being destroyed. Based on these callbacks, you can decide the behaviour of Activity when the user enters, leaves, or re-enters the Activity.

In this coffee break codelab, you'll explore:
  • Overview of Activity and Android components 
  • Creative Lifecycle methods: onCreate, onStart, onResume, onRestart 
  • Destructive lifecycle methods: onPause, onStop, onDestroy 
  • Significance of each lifecycle method 
  • Lifecycle behaviour while navigating between Activities 
  • Lifecycle behaviour when the app is minimised and re-opened 
  • Code Challenge 

Meet the instructor

Sriyank Siddhartha

Content Author & Course Instructor

More courses by the instructor