Android Identify SMS message in Broadcast receiver listening for Delivered SMS action?

Whit the SmsManager. SendTextMessage you can specify an Intent for every single SMS where you could check if the message was send successfully.So just make a new class instance for every sms.

If you will forgive me, that feels a little clumsy although I can see where you are coming from there. I was hoping that there was something in the Intent being returned to the Delivered message broadcast receiver that would identify the individual outgoing messages. Having said that I will have a play with your idea and report back.

– Mike Mar 5 at 8:38 I had a go at creating new Intents with a putExtra() identification added to each and then used them to create new PendingIntents for each message. However the Intent that arrives at the Broadcast Receiver does not have this or any other value I could identify as pertinent. I can see that it would be possible in some circumstances to create multiple BroadcastReceivers and use different Actions to call them but this does not fit well with a situation where I have an unknown number of SMS messages to send in a batch.

I may have to resort to just counting them which is a bit feeble. – Mike Mar 5 at 15:21.

I have an Android app that sends a small queue of messages in a single batch. I am assuming that I can listen for the SENT action and that the send confirmation will be in the same order as the messages were presented to the SMS service. However I am also assuming that delivery confirmation will be asynchronous.

How do I identify which message the broadcast receiver is getting delivery confirmation for? Any ideas greatly appreciated.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions