Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 629
yoshi24 Avatar asked Dec 17 '22 10:12

yoshi24


1 Answers

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.

like image 198
Phil Avatar answered Jan 21 '23 09:01

Phil