title: Android BroadCast receiver for vibrate and silent
body: <p>I need a broad cast receiver implementation where a user can check whether a phone is going from Ringer mode to silent or silent to vibrate and vice versa.</p>
  
  <pre><code>int volumeValue = (Integer)intent.getExtras().get("android.media.EXTRA_VOLUME_STREAM_VALUE");
  </code></pre>
  
  <p>I tried this code but it won't me help much because it gives same value from ringer to silent and silent to vibrate and vice versa. I actually want to catch the action when phone go from ringer mode to silent and silent to vibrate
  Thanks in advance</p>