I use the following utils method:
public static final void vibratePhone(Context context, short vibrateMilliSeconds) {
Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
vibrator.vibrate(vibrateMilliSeconds);
}
Add the following permission to the AndroidManifest file
<uses-permission android:name="android.permission.VIBRATE"/>
You can use overloaded methods in case if you wish to use different types of vibrations (patterns / indefinite) as suggested above.