donnfelker/Silent-Mode-Toggle — Issue #2: Doesn't display correct status when
Author: domiflichi
Created: 2012-02-12 06:59:14+00:00
State: open

Hello,

I've set up a new project following the Dummies book but using Android 2.3.3, and I'm experiencing a strange problem:

When I adjust the volume with the volume buttons on my virtual device (or actual phone if I install it on there) and open the Silent Mode Toggle program it will not necessarily show the correct state of the phone's silent/ringer status. It always shows normal (the green image). So if I use the volume buttons on my button to bring it down to silent and open the app, it will still show the green image for 'normal' even though the phone is actually silenced.
However, if I use the APP to turn it to silent mode, leave the app, and come back, it properly shows the red image. I tried copying the code from the downloaded MainActivity.java file to see if I had a typo in there somewhere, but it still exhibits the same behavior.

Is there some difference in 2.2 and 2.3.3 that is causing this, or some other issue?