Skip to content Skip to sidebar Skip to footer

Is There A Good Way To Tell When An Sms Gets Read On Android?

I'm playing around with a small notification app. My basic requirements are: when an SMS comes in, turn on the LED. When it gets read, turn it off. The first part seems easy eno

Solution 1:

You can use ContentObserver. I suppose when a new message comes into sms inbox, you will get a notification (by content observer), on the other hand, when a sms has been read, it will be removed from inbox, and also you will get another notification.

ps, Use ContentObserver observing on content://sms/inbox

Post a Comment for "Is There A Good Way To Tell When An Sms Gets Read On Android?"