wasnt really sure what words to query in google, so im just going to ask this question.
What happens to an activity when i start another activity?
Lets say I am currently on activity A, then from a, i called a function to startService a new intent that opens activity B. What happens to the lifecycle of A? is it destroyed? stopped?
Subquestion. If the activity is paused, how do i call/open it back from the newly started activity?
Activity A is paused, then stopped – both the
onPause()&onStop()methods are called, butonDestroy()is not called. The Activity still remains in the back stack.Quoting the Android documentation: