Code example for Vibrator

Methods: vibrate

0
		Toast.makeText(context, "Don't panik but your time is up!!!!.",
				Toast.LENGTH_LONG).show();
		// Vibrate the mobile phone 
		Vibrator vibrator = (Vibrator) context
				.getSystemService(Context.VIBRATOR_SERVICE);
		vibrator.vibrate(2000);
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE