I am using a Timer to control the refresh rate of my widget.
Unfortunately, the timer seems to pile up the number of counts (X) that it has missed when the phone enters SLEEP mode. When I wake the phone, the timer execute X times (the number of counts that it has missed) - this causes my widget to slow down the phone when I recover it from sleep mode.
Is there a way to rectify this? Or am I doing it wrong?
Any advices are appreciated.