Code example for CountDownTimer

Methods: cancel, start

0
		    	 offsetX += OFFSET_STEP;
		    	 //Log.i(TAG, "TICK"); 
		     } 
 
		     public void onFinish() { 
		    	 cdt.cancel();
		    	 cdt.start();
		     } 
		  }; 
		  cdt.start();
 
	} 
	 
	public boolean onTouchEvent(MotionEvent event) {
		if(event.getAction() != MotionEvent.ACTION_UP)
        	return true; 
 
        Random rnd = new Random();
        int previousFunction = currentFunction;
         
        if(functions.size() >  1)