I have a problem with the chronometer. When I start it, it begins from 01:00:00. I don't know why. I think that my code is correct.
Can you understand what the problem is?
This is my code:
Chronometer crono = new Chronometer(this);
crono.setBase(SystemClock.elapsedRealtime());
crono.start();
When I print the time I call this method:
long time = SystemClock.elapsedRealtime() - totalTime.getBase();
Date date = new Date(time);
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
formatter.format(date);
Thanks very much!