You can try using
startActivityForResult(sendIntent, SOME_REQUEST_CODE)
but in my experience it doesn't work most of the time. I would recommend using SmsManager instead.
SmsManager smsMgr = SmsManager.getDefault(); if(smsMgr != null){ PendingIntent sentIntent = PendingIntent.getBroadcast( getActivity().getApplicationContext(), 0, new Intent(MY_ACTION_INTENT_SENT), 0); smsMgr.sendTextMessage(phone, null, message, sentIntent, null); }
Depending on your application, you can perform the remaining processing when MY_ACTION_INTENT is sent (indicating that the message is indeed sent) or immediately after sendTextMessage (...) returns.
From API level 19 you can find interesting features http://developer.android.com/reference/android/provider/Telephony.html
Hope this helps.
Junior buckeridge
source share