List of usage examples for android.media AudioManager VIBRATE_SETTING_OFF
int VIBRATE_SETTING_OFF
To view the source code for android.media AudioManager VIBRATE_SETTING_OFF.
Click Source Link
From source file:Main.java
public static void setRingOnly(AudioManager audiomanager) { audiomanager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); audiomanager.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER, AudioManager.VIBRATE_SETTING_OFF); }
From source file:Main.java
public static boolean isRingOnly(AudioManager mAudioManager) { int ringerMode = mAudioManager.getRingerMode(); int vibrateMode = mAudioManager.getVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER); return ringerMode == AudioManager.RINGER_MODE_NORMAL && vibrateMode == AudioManager.VIBRATE_SETTING_OFF; }