You want to open the default Dialer app on a device. What is wrong with this code?'''val dialerIntent = Intent()val et = findViewById(R.id.some_edit_text)dialerIntent.action = Intent.ACTION_DIALdialerIntent.data = Uri.parse('tel:' + et.getText()?.toString())startActivity(dialerIntent)

🎲 Try a Random Question  |  Total Questions in Quiz: 50  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Android Quiz — practice the complete quiz, review flashcards, or try a random question.

MCQs For LinkedIn Skill Assessments.


You want to open the default Dialer app on a device. What is wrong with this code?<br>'''<br>val dialerIntent = Intent()<br>val et = findViewById(R.id.some_edit_text)<br>dialerIntent.action = Intent.ACTION_DIAL<br>dialerIntent.data = Uri.parse('tel:' + et.getText()?.toString())<br>startActivity(dialerIntent)<br>