What is the differents between sendBroadcast (intent) to startActivity(intent).
Why this don’t work:
Intent smsIntent = new Intent(Intent.ACTION_SENDTO);
smsIntent.setData( Uri.parse( "sms:0533"));
smsIntent.putExtra("sms_body", "The SMS text");
sendBroadcast(smsIntent);
sendBroadCast()sends a global broadcast that is to be picked up by anyBroadcastReceiversthat are set to receive that broadcast.startActivity()attempts to start an Activity based on either the class name you specify or the Intent Action (which is a String).In your case
Intent.ACTION_SENDTOis an Intent Action and so, needsstartActivity()From the docs: