Which intent opens the website typed by the user?
- Intent(Intent.ACTIONVIEW, Uri.parse(url))
- Intent(Intent.ACTIONDIAL, Uri.parse(url))
- Intent(this, Browser::class.java)
- Intent(Intent.ACTIONSEND, url)
Answer
A) Intent(Intent.ACTIONVIEW, Uri.parse(url))
ACTIONVIEW with an http(s) URI is handled by browsers.
Computer Science MCQ · More Lab: Implicit Intents – Browser and Dialer MCQs · Practise