Android - How to get Vibrate on ring status?
<p>ICS and JB has a OS setting: "Vibrate on ring". I tried next code try to get the status, but the values  are not the same. Is there Broadcast or other method I could use? </p>

<pre><code>    AudioManager audioManager = (AudioManager) this.getApplicationContext()
            .getSystemService(Context.AUDIO_SERVICE);
    boolean bVibrateRing = audioManager
            .shouldVibrate(AudioManager.VIBRATE_TYPE_RINGER);
</code></pre>

<p>In ICS Sound mode and when check the "Vibrate on ring", it will be true.
But in JB it will be false.</p>

<p>I tried Broadcast like this:</p>

<pre><code>    receiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            Bundle extras = intent.getExtras();
            if (extras != null) {
                int nstate = extras
                        .getInt(AudioManager.EXTRA_RINGER_MODE);
                Log.d("receiver", " receiver EXTRA_RINGER_MODE :  "
                        + nstate);
            }
        }
    };
    IntentFilter filter = new IntentFilter(
            AudioManager.RINGER_MODE_CHANGED_ACTION);
    registerReceiver(receiver, filter);
</code></pre>

<p>I could only get next mode change:</p>

<pre><code>RINGER_MODE_NORMAL
RINGER_MODE_SILENT
RINGER_MODE_VIBRATE
</code></pre>

<p>There is no information about  "Vibrate on ring".</p>

<p>Thank you for your any hint and time.</p>
