Android - read and delete new SMS of a specific sender only

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-04-04T11:18:33Z Indexed on 2010/04/04 11:23 UTC
Read the original article Hit count: 329

Filed under:
|
|

I'm trying to write the next function:

1) Send SMS to a service number

2) Read the response SMS content (the service's auto sent-back message that tells me if I succeed/failed to turn on the service)

3) Delete the service's auto-sent SMS

I know how to do the first step, and I should be able to do the second with both:

getMessageBody ()

getOriginatingAddress ()

but:

1) how can I refer the last incoming message to use the above functions?

2) how can I delete that specific message?

Thanks, John

© Stack Overflow or respective owner

Related posts about android

Related posts about sms