AND-401 Exam QuestionsBrowse all questions from this exam

AND-401 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?

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

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

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