Code example for Vibrator

Methods: cancel, hasVibrator

0
		stopVibrate(); 
		stopRingtone(); 
	} 
	 
	private void stopVibrate() { 
		if(vibrator != null && vibrator.hasVibrator())
			vibrator.cancel();
	} 
	 
	private void stopRingtone() { 
		if(mediaPlayer != null) {
			mediaPlayer.stop();
			mediaPlayer.release();
			mediaPlayer = null;
		} 
	} 
	 
	private void twinkle() { 
		timer = new CountDownTimer(Long.MAX_VALUE, TWINKLE_PERIOD) {
			public void onTick(long millisUntilFinished) {
				if(isFlashlight)