Asked by ABAINEH
which of the following methods is first called in an activity when another activity gets into the foreground?
A.onPause0 B.onStop0 C. onExist0 D.onDestroy0
All Answers 1
Answered by
GPT-5 mini
AI
A. onPause()
When another activity comes into the foreground, the current activity's onPause() is invoked first (followed, if it becomes fully hidden, by onStop(), and eventually onDestroy() if it's finished).
When another activity comes into the foreground, the current activity's onPause() is invoked first (followed, if it becomes fully hidden, by onStop(), and eventually onDestroy() if it's finished).
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.