Code example for AlphaAnimation

Methods: reset

0
//		lastAlarm = System.currentTimeMillis(); 
	} 
	 
	private void startBlinking(View visualAlarm) {
		visualAlarm.setVisibility(View.VISIBLE);
		blinkingAnimator.reset();
		visualAlarm.startAnimation(blinkingAnimator);	
	}		 
 
	public void stopAlarm(View visualAlarm) {
//		alarmTone.stopTone(); 
//		visualAlarm.clearAnimation(); 
		alarming = false;
		sounds.stop(stopSignal);
		if (visualAlarm != null) {
			blinkingAnimator.cancel();
			visualAlarm.setVisibility(View.INVISIBLE);
		} 
	} 
	 
}