Android: Resume on Count Down Timer
<p>I am a beginner in Java and Android programming.  And I am confused on how to resume my Count Down Timer
   after the <code>pause. counter.ontick(milisUntilFinished);</code> is not working in my code.<br>
   Please help me I am bit rushed.   </p>

<p>This is my code:  </p>

<pre><code>@Override  
protected void onRestoreInstanceState(Bundle cute) {  
super.onRestoreInstanceState(cute);}  

@Override  
protected void onSaveInstanceState(Bundle outState) {  
super.onSaveInstanceState(outState);}  

Timer.setOnClickListener(TimerClickListener);  
counter = new MyCount(orig, 1000);  
private OnClickListener TimerClickListener = new OnClickListener() {  

public void onClick(View v) {  
if (p1&lt;=4){  
if (decision==0){  
counter.start();  
decision=1;}  
else if(decision==1){  
//pause
counter.cancel();  
decision=2; }  
else{  
//resume  
counter.onTick(orig);  
decision=1;   
}  
//end if  
}   } };      
class MyCount extends CountDownTimer {  
public MyCount(long millisInFuture, long countDownInterval) {  
super(millisInFuture, countDownInterval);  
public void onFinish() {  
//do stuff  
}//end if  
}//finish  
public void onTick(long millisUntilFinished) {  
. . .  
. . .    
orig = millisUntilFinished;  
Timer.setText(String.format("%02d", minutes) + ":"  
+ String.format("%02d", seconds));  
}//class MyCount  
</code></pre>

<p>Any help would be appreciated! </p>
