Search code examples
androidseekbarvibration

How do I vibrate my device on SeekBar Progress Update


So I have a seekbar in my android app. I want the device to vibrate for (say) 50 milliseconds on each update of the progress value. How do I do that ? Thanks in advance.


Solution

  • Use the SeekBar.OnSeekBarChangeListener to know when the value changes. And check this answer to do the vibration.