I am trying to use timer in simple Android app,but as long as I use this code...
public void controlTimer () {
CountDownTimer = new CountDownTimer(10000,1000) {
@Override
public void onTick(long millisUntilFinished) {
Log.i("tick", "tock");
}
@Override
public void onFinish() {
}
} start();
...the app ceases to work saying
Error:(42, 10) error: ';' expected
I have done loads of searching and now I am desperate. What is wrong in the code?
Many thanks! Jan.