vibrateAndShowToast

fun vibrateAndShowToast(context: Context, message: String, durationMilli: Long)

vibrate the device and display the error message to the user

Parameters

context

of the view

message

to be displayed the user

durationMilli

the duration of the vibration