Joke Collection Website - Public benefit messages - How does Android delete the specified SMS?

How does Android delete the specified SMS?

You need to define a dataobserver to listen to the provider "content://sms/inbox". When a short message arrives, you can get a callback through "onChange(boolean arg0)", and then traverse the inbox to find _id (according to prefix or other indexes) and delete it (note: onChange () will call back again).