0

I have content observer which "observes" table changes in "content://sms". My app i'm working on, checks for unread SMS messages and it's working fine. The value of unread messages i'm storing in static variable ( need reference from another class ).

But the thing is that i need to reset this variable to zero, when user navigates to messaging application (SMS Inbox).

Can someone points me to right direction how to do that?

Thanks in advance..=)

rootpanthera
  • 2,731
  • 10
  • 33
  • 65
  • which variable you need to reset ? – DjHacktorReborn Mar 08 '13 at 17:39
  • Static variable in my program which counts unread messages. For example, static int counter = 0; Then i have content observer which gets unread messages, so "counter" variable is the number of unread messages. I need reset this variable to "0", when user navigates to messaging application (he wants to read , unread messages ). Hope i was clear enough. – rootpanthera Mar 08 '13 at 17:43
  • is my answer solved you design problem – DjHacktorReborn Mar 08 '13 at 17:53
  • you want... if you read all messange then set counter=0 right??? – QuokMoon Mar 08 '13 at 17:59

0 Answers0