Skip to content

dnshariprasad/android-activity-lifecycle

Repository files navigation

Activity Life Cycle

To Visible State :

On Activity starting for the first time - onCreate > onStart > onResume

To Partially visible state :

  • On Dialog Activity open - onPause

  • On Dialog Activity dismiss - onRestart

To Invisible state :

  • On screen off - onPause > onStop

  • On minimising Activity - onPause > onStop

    On reopening a minimised Activity - onRestart > onStart > onResume

  • On opening other activity through Intent - onPause > onStop

    On moving back to previous activity - onRestart > onStart > onResume

To Destroyed state :

  • On back button pressed - onPause > onStop > onDestroy

  • On finish - onPause > onStop > onDestroy

[ABCS of Android](Link http://abcsofandroid.blogspot.in/2015/11/activity-life-cycle.html)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages