Online Course Support

What happens at the execution of the following code if no app able to handle ACTION_SENDTO is installed on your phone?

Question 2
What happens at the execution of the following code if no app able to handle ACTION_SENDTO is installed on your phone?

12345
Intent smsIntent = new Intent(Intent.ACTION_SENDTO);
smsIntent.setData(Uri.parse(“smsto:5556”));
smsIntent.putExtra(“sms_body”, “hello”);
startActivity(smsIntent);
toastFailed.show();
1 point

The application will crash.

The startActivity method is not executed and the execution moves to the next instruction.

The user will be prompted to install one.

Similar Posts