I am using intent to send sms .
Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.setData(Uri.parse("smsto:" + phoneNumber));
intent.putExtra("address", phoneNumber);
intent.putExtra("sms_body", messageBody);
intent.putExtra("exit_on_sent", true);
startActivityForResult(intent, 6789);
- How can I make it return to my application with result? Currently it stays in "messages" view.
- is there any Broadcast Receiver to know if the sms has been sent or delivered ?