Code example for CountDownTimer

Methods: cancelstart

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;
         
Contextual code suggestions in your IDE  Get Codota for Java