I have a simple app that starts a counter when start button is pressed. I would like the counter to keep counting even during screen rotations. For that i've put the Chronometer in a fragment and used setretaininstance. The idea is to store the time counted in parameter elapsedMillis, and use this to update the chronometer when isCounting = true. Put in simple words, i want a timer that keeps counting even during screen rotation. This, however doesn't work at all - after screen rotation i can't even start it. What is wrong?