code: public static void vibrate(int duration) {
          Vibrator v = (Vibrator) QuickUtils.getContext().getSystemService(Context.VIBRATOR_SERVICE);
          v.vibrate(duration);
      }
docs: Make the smartphone vibrate for a giving time. You need to put the
  vibration permission in the manifest as follows: <uses-permission
  android:name="android.permission.VIBRATE"/>
  
  @param duration duration of the vibration in miliseconds