I am trying to understand the actual concepts of the lifecycle methods of an Activity.
I am focusing on only primary lifecycle methods as mentioned below
onCreate()
onStart()
onResume()
onPause()
onStop()
onDestroy()
Can someone please explain a scenario where we can skip a method and rest lifecycle works perfectly fine?
E.g. if I swipe up and kill the application, onPause()
and onStop()
methods will be skipped and only the onDestroy()
method will execute.