I am working on the message sending and receiving , i got many answers for message receiving via broadcast receiver , But there is no solution for message sent .
<receiver
android:name="com.test.services.MessageReciver"
android:enabled="true"
android:permission="android.permission.BROADCAST_SMS" >
<intent-filter>
<action android:name="android.provider.Telephony.SMS_DELIVER" />
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
public static final String ACTION_RECEIVED = "android.provider.Telephony.SMS_RECEIVED";
public static final String ACTION_SENT = "android.provider.Telephony.SMS_DELIVER";
Context context;
@Override
public void onReceive(Context context, Intent intent) {
// this section works only when message received on in case of sent
}
But the broadcast receiver work only for message received not for message sent.