Code example for Vibrator

Methods: cancelvibrate

0
	 
	/** 
	 * starts single vibration 
	 */ 
	public void singleVibration(){ 
		mVibrator.cancel();
		// Only perform this pattern one time (-1 means "do not repeat", 0 - repeat all time) 
		mVibrator.vibrate(pattern, -1);
 
	} 
	 
	/** 
	 * return true if vibration support 
	 */ 
	//public boolean supportVibration(){ 
		//return mVibrator.hasVirtator(); 
	//} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE