I've read the source of package/app/Mms and find that the
MessageStatusReceiver class handle the message status report.
I think that the message status report is also a kind of SMS message,
so it can be received by any BroadcastReceiver which has registered
with the action "android.provider.Telephony.SMS_RECEIVED"?
While I can't receive any message status report but normal SMS
messages by codes below while the Mms application can do so.

StringBuilder sb = new StringBuilder();
                        Bundle bundle = intent.getExtras();
                        if (bundle != null) {
                                Object[] pdus = (Object[]) bundle.get("pdus");
                                SmsMessage[] msg = new SmsMessage[pdus.length];
                                for (int i = 0; i < pdus.length; i++) {
                                        msg[i] = 
SmsMessage.createFromPdu((byte[]) pdus[i]);
                                }
                                for (SmsMessage currMsg : msg) {
                                        // if(currMsg.isStatusReportMessage()) {
                                        sb.append("From:");
                                        
sb.append(currMsg.getDisplayOriginatingAddress());
                                        sb.append("\nMessage:");
                                        
sb.append(currMsg.getDisplayMessageBody());
                                        Log.d(TAG, sb.toString());
                                        // }

                                }

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to