Code example for CountDownTimer

Methods: cancel

0
    } 
     
    @Override 
    public void onBackPressed() { 
 
    	tmr.cancel();
    	 
    	super.onBackPressed(); 
    } 
     
	public void onClick(View v) {
		if(v.getId() == R.id.btnLeft && currentCase.answer == true)
			correct(); 
		else if(v.getId() == R.id.btnRight && currentCase.answer == false)
			correct(); 
		else 
			wrong(); 
	} 
     
    /* 
     *		Custom methods/functions