Code example for CountDownTimer

Methods: cancel, start

0
     */ 
	public void playMedia(boolean isplay) {
		 
			if (isplay) {
				videoviewer.start();
				timer.start();
			} else { 
				videoviewer.pause();
				timer.cancel();
			} 
		 
    } 
     
    /** 
     * Pause and rewind to beginning of the media content 
     *  
     * @param v	View the touch event has been dispatched to 
     */ 
	public void stopMedia() { 
		if (videoviewer.getCurrentPosition() != 0) {