I have register a Broadcast listener to receive the android.provider.Telephony.SMS_DELIVER
Intent action.
I seem to be able to get the body, and sender phone number of this new message.
However I am not able to get the Message Id or Thread Id of this new message. The only way I have found is to search the message and conversation tables for matching content. But this seems a little messy and I feel like there should be a neater way.
Side note:
Is there some SMS documentation that I have missed? Because a lot of the SMS api seems very undocumented.