Android Application Development for Dummies Silent Mode Toggle app not behaving properly
<p>I'm just starting out with Android programming and am following along in the 'Android Application Development for Dummies' book, and have gotten to a point where I have a 'working' Silent Mode Toggle app, but I noticed a 'bug' or something:</p>

<p>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 <a href="https://github.com/donnfelker/Silent-Mode-Toggle/blob/master/src/src/com/dummies/android/silentmodetoggle/MainActivity.java" rel="nofollow" title="downloaded MainActivity.java file">downloaded MainActivity.java file</a> to see if I had a typo in there somewhere, but it still exhibits the same behavior.</p>

<p>The example app in the book was written using Android 2.2, but I'm developing on 2.3.3 (my virtual device and actual phone)
Is there some difference in 2.2 and 2.3.3 that is causing this, or some other issue?</p>

<p>Thanks,
Jamie</p>
