I want the phone to vibrate when I click the button
I want to do this with Kotlin in Android Studio
The following code did not work
val vib = getSystemService(MainActivity.VIBRATOR_SERVICE) as Vibrator
val milliseconds:Long = 2000
vib.vibrate(milliseconds)