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

Consider the following code:

Intent intent = new Intent();

intent.setAction(Intent.ACTION_VIEW);

intent.setData(android.net.Uri.parse("http://www.androidatc.com")); startActivity(intent);

Which of the following is correct about the code above?

    Correct Answer: D

    When the given code is executed, the system uses an intent resolution process to determine which activity can handle the specified intent, which is to view a web page. The intent filter that matches this action will be selected by the system, typically an activity that can handle HTTP links such as a web browser.

Discussion
MmadiOption: D

D. When it is executed, the system starts an intent resolution process to start the right Activity.