How do I make my Android phone vibrate

Phone Vibrate Android Studio
- Open your device’s Settings app .
- Tap Accessibility.
- Tap Vibration & haptic strength.
- Review or change the following settings: Ring vibration. Notification vibration. Touch feedback
// Vibrate for 90 milliseconds private void shakeItBaby() { if (Build.VERSION.SDK_INT >= 26) { ((Vibrator) getSystemService(VIBRATOR_SERVICE)) .vibrate(VibrationEffect.createOneShot(90, VibrationEffect.DEFAULT_AMPLITUDE)); } else { ((Vibrator) getSystemService(VIBRATOR_SERVICE)).vibrate(90); } }
