开发者

Life cycle called when backpress is pressed to navigate back to the previous activity?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜