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?
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?
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.
D. When it is executed, the system starts an intent resolution process to start the right Activity.