What activity state is called when another activity, in the same application, is launched, and then the backpress button is开发者_开发知识库 clicked to navigate back to it?
What lifecylce method is called during the proccess of going back to the previous activity?
onPause()
is called in Activity A when it launches Activity B. After the back button is called in Activity B, onResume()
is called in Activity A.
What lifecylce method is called during the proccess of going back to the previous activity?
According to the docs: onPause()
, onStop()
, and possibly onDestroy()
. In addition to the lifecycle documentation, you might want to read the docs on Tasks and Back Stack.
精彩评论