Timer nicht stoppen in android

Machte ich eine Anwendung in android und verwendet den timer so..

try {
    CountDownTimer  start1 = new CountDownTimer(20000, 1000) {

        public void onTick(long millisUntilFinished) {
                TextView timeShow = (TextView)findViewById(R.id.showTime);
        timeShow.setText(" "+" 00:" +millisUntilFinished / 1000);
            }

Aber mein problem ist, ich weiß nicht, wie zu stoppen timer. Irgendeine Idee?

Ich bereits versucht:

quitApplication.setOnClickListener(new OnClickListener() {
    public void onClick(View v) { 
        start1.cancel(); 
        Intent i = new Intent(v.getContext(), startGame.class);
        startActivity(i);
        //TODO Auto-generated method stub 
    } 
}); 
InformationsquelleAutor BIBEKRBARAL | 2010-03-04
Schreibe einen Kommentar