PrepAway - Latest Free Exam Questions & Answers

What does this code do?

What does this code do?
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setData(android.net.Uri.parse(“http://www.androidatc.com”));
startActivity(intent);

PrepAway - Latest Free Exam Questions & Answers

A.
Starts a sub-activity

B.
Starts a service

C.
Sends results to another activity.

D.
Starts an activity using an implicit intent.

2 Comments on “What does this code do?


Leave a Reply

Your email address will not be published. Required fields are marked *