Exam AND-401 All QuestionsBrowse all questions from this exam
Question 61

Which method should you use to start a sub-activity?

    Correct Answer: B

    To start a sub-activity and later receive a result from it, you should use startActivityForResult(Intent intent, int requestCode). This method allows you to launch an activity and then handle the result in the onActivityResult callback method. It is the appropriate method for initiating a sub-activity when you want to get a result back from the activity you started.

Discussion
MmadiOption: B

B. startActivityForResult(Intent intent , int requestCode)