AND-401 Exam QuestionsBrowse all questions from this exam

AND-401 Exam - Question 61


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

Show Answer
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

1 comment
Sign in to comment
MmadiOption: B
Dec 31, 2022

B. startActivityForResult(Intent intent , int requestCode)