1

Hi I am developing an android SMS app where I am fetching the SMS stored in the phone and displaying it on a list view. How can I update a SMS as read in the phone, upon reading an SMS in my app.

I refered the following link, Android: how to mark sms as read in onReceive

This did not work. What can i use instead of this. Please suggest. Thanks!

Community
  • 1
  • 1
sanjana
  • 641
  • 2
  • 15
  • 36

1 Answers1

2

How can I update a SMS as read in the phone, upon reading an SMS in my app.

You can't, reliably. There are hundreds, perhaps thousands, of SMS clients on the Play Store. None of them have to expose some sort of API to allow third parties to somehow mark SMS messages as "read".

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • @sanjana: "There are lot of widgets which can do it" -- not reliably. Those app widgets will not necessarily be able to mark messages as read in all SMS client applications. "How have they done?" -- presumably, they followed the unreliable instructions from the question that you linked to and its accepted answer. That should work for those SMS clients that happen to use the undocumented and unsupported SMS `ContentProvider`, at least until Google decides to lock down access to that `ContentProvider`. – CommonsWare Aug 30 '13 at 12:40