Which intent opens the website typed by the user?

  1. Intent(Intent.ACTIONVIEW, Uri.parse(url))
  2. Intent(Intent.ACTIONDIAL, Uri.parse(url))
  3. Intent(this, Browser::class.java)
  4. 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