I registered a Broadcast listener to get an android.provider.Telephony.SMS_DELIVERIntent action .
It seems I can get the body and send the phone number of this new message.
However, I cannot get the message id or thread id of this new message. The only way I found is to search for messages and conversation tables to match the content. But it seems a little dirty, and I feel that there needs to be a more neat way.
Side note:
Is there some kind of SMS documentation that I missed? Because a lot of SMS-api seems very undocumented.
source
share