ContentObserver used for SMS [duplicate]
问题 This question already has an answer here: Practical way to find out if SMS has been sent 3 answers I'm trying to extract the sent SMS. I know there is no BroadcastReciver for this. So I've found that I can use ContentObserver to listen changes in the db. How can I implement this? My objective is to get only the new sms sent and send it via POST on the DB Thanks 回答1: Here is a code fragment to do this. The key is to use a selection that looks only for "type = outgoing messages". Also since the