简体   繁体   中英

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM