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()View AnswerAnswer: B Explanation: onPause() is where you deal with the user leaving your activity. References: http://developer.android.com/reference/android/app/Activity.html