I'm facing a problem in my Android app, where I have to show a simple counter. I do that with the Timer class in my editor, and set it to display the current beat every say 20 ms. The problem is that it's not absolutely constant. If I play around with other controls in the screen, I can see the counter slow, then speed up. What am I doing wrong?
I have tried using the HiRes Timer also (with a MessageManagerLock), but the result is the same.
Thanks for any hint that can help me achieve a fully reliable counter on screen.