Which of the following methods is called first in an Activity when another activity gets into the foreground?

Which of the following methods is called first in an Activity when another activity gets into the foreground?
A . onStop()
B . onPause()
C . onDestroy()
D . onExit()

Answer: B

Explanation:

onPause() is where you deal with the user leaving your activity.

References: http://developer.android.com/reference/android/app/Activity.html

Latest AND-401 Dumps Valid Version with 228 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments