Android Vibrate for one time


Example

using the vibrate(long milliseconds)

Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
vibrator.vibrate(500);