Java tutorial
//package com.java2s; import android.content.Context; import android.os.Vibrator; public class Main { public static void vibrate(Context thisActivity) { Vibrator vibe = (Vibrator) thisActivity.getSystemService(Context.VIBRATOR_SERVICE); //28 ms is the default short android vibrate time length vibe.vibrate(28); } }