开发者

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

开发者 https://www.devze.com 2023-02-15 01:57 出处:网络
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 conf开发者_StackOverflow中文版irmation will be in th

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 conf开发者_StackOverflow中文版irmation 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.


How do you send your messages? 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消