I'm afraid this is a hard one. I have spent a long time searching and although I found many requests I didn't find a clear answer. I use SendTextMessage in a loop to send SMS messages to multiple recipients:
SmsManager.SendTextMessage(StringToJString(foo), nil, StringToJString(bar), nil, nil)
But some of the messages won't be sent and I suspect this happens because the sending of the previous message is not finished yet. I don't want to use a fixed delay. Instead I'm looking for a way to use the last two params (sentIntent & deliveryIntent) in order to know when a message has been sent (and when one has been delivered if possible). I read that i have to use 2 JIntents wrapped in 2 JPendingIntents but when it comes to creating a broadcast receiver (I think that's the way to go) I'm totally lost. Any help and a bit of sample code would be deeply appreciated.