Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vibrate setting not turning off on receiving incoming call - Android
- AudioManager audioManager = (AudioManager)
- context.getSystemService(Context.AUDIO_SERVICE);
- audioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER,
- AudioManager.VIBRATE_SETTING_OFF);
- Vibrator vib = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
- vib.cancel();
- if (shouldVibrate() && mVibratorThread == null) {
- mContinueVibrating = true;
- mVibratorThread = new VibratorThread();
- mVibratorThread.start(); }
Add Comment
Please, Sign In to add comment