Android: Ringer mode changed to silent doesn't stop the phone vibrating

Posted by Flo on Stack Overflow See other posts from Stack Overflow or by Flo
Published on 2010-04-13T18:39:30Z Indexed on 2010/04/14 20:23 UTC
Read the original article Hit count: 604

Filed under:
|
|

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.

AudioManager am = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE);
am.setRingerMode(AudioManager.RINGER_MODE_SILENT);

While the phone stops ringing it continue to vibrate although the documentation of RINGER_MODE_SILENT says it should also stop vibrating.

I'm using the SDK 1.6

UPDATE:

As I didn't find a solution yet, I tried to deactivate the vibration settings manually.

am.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER, AudioManager.VIBRATE_SETTING_ONLY_SILENT );

But this also doesn't prevent the phone form vibrating when a call is incoming.

Any ideas?

© Stack Overflow or respective owner

Related posts about android

Related posts about audiomanager