title: Android: Ringer mode changed to silent doesn't stop the phone vibrating
body: <p>I'm trying to change the ringer mode of the phone to RINGER_MODE_SILENT when a call is incoming by using the following lines of code.</p>
  
  <pre><code>AudioManager am = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE);
  am.setRingerMode(AudioManager.RINGER_MODE_SILENT);
  </code></pre>
  
  <p>While the phone stops ringing it continue to vibrate although the documentation of <a href="http://developer.android.com/reference/android/media/AudioManager.html#setRingerMode%28int%29" rel="nofollow noreferrer">RINGER_MODE_SILENT</a> says it should also stop vibrating.  </p>
  
  <p>I'm using the SDK 1.6</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>As I didn't find a solution yet, I tried to deactivate the vibration settings manually.</p>
  
  <pre><code>am.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER, AudioManager.VIBRATE_SETTING_OFF );
  </code></pre>
  
  <p>But this also doesn't prevent the phone form vibrating when a call is incoming. </p>
  
  <p>Any ideas?</p>
  
  <p><strong>UPDATE 2:</strong></p>
  
  <p>Today I tried to solve the problem by canceling the vibration via a Vibration object. </p>
  
  <pre><code>Vibrator vib = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
  vib.cancel();
  </code></pre>
  
  <p>Again, without success. Now I'm running out of ideas and asking myself if it is possible to stop the vibration at all. </p>
  
  <p><strong>UPDATE 3:</strong></p>
  
  <p>I've discovered another interesting fact when I've reread the <a href="http://developer.android.com/reference/android/os/Vibrator.html" rel="nofollow noreferrer">documentation of the Vibrator class</a>. The documentation says: </p>
  
  <blockquote>
    <p>"If your process exits, any vibration
    you started with will stop."</p>
  </blockquote>
  
  <p>This sounds to me as if the vibration is linked to the process that started it and cannot be accessed form another process. </p>