The code is not working!

Report a typo

Rachel is trying to send an implicit intent to dial a phone number, but the calling app is not launching! She checked her code and there are no compilation or runtime errors. Help her to identify the problem.

button.setOnClickListener {
    val phoneNumber = Uri.parse("tel:(650)555-1212")
    val intent = Intent(Intent.ACTION_DIAL, phoneNumber)
}
Select one option from the list
___

Create a free account to access the full topic