I am able to get the send / receive SMS status when sent from my android application. For send using the below code,
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(phoneNo, null, msg, sentIntent, deliveredIntent);
Where , sentIntent
and deliveredIntent
are Pending intents
I can get the SMS sent/delivery report successfully (When send from my application).
But, When I send SMS by using default Message application, the BroadcastReceiver not get called.
I have added the below filter for my BroadcastReceiver class
<receiver android:name=".SMSBReceiver">
<intent-filter android:priority="1000" >
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
<action android:name="android.provider.Telephony.SEND_SMS" />
</receiver>