Why does the lab add "https://" when the user types only "www.hec.gov.pk"?
- To make the text longer
- To call the website
- To store it in SharedPreferences
- Because a URI without a scheme may not be recognised as a web link
Answer
D) Because a URI without a scheme may not be recognised as a web link
The http/https scheme tells Android to open a browser.
Computer Science MCQ · More Lab: Implicit Intents – Browser and Dialer MCQs · Practise