Life cycle of Android Activity after pressing Back button
activity-lifecycle, android
Solution
The following activity call back methods are called, after pressing back button.
onPause()
onStop()
onDestroy()
The activity is destroyed.
And it recreates when launched again. These are the callback methods when it launches again.
onCreate()
onStart()
onResume()
Problem
I am little confused between the life cycle of two activities. Suppose I have Activity A and Activity B. B is called From A i.e `A ----> B`. Now currently `B` is on the screen and I pressed back button. Here I want know:- is there any memory still available for `B`(Active) or `B`'s memory is flushed(Inactive).