Widget updates even when sleep

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Widget updates even when sleep

Postby csengyee » Sun Jan 17, 2010 11:41 am

Hi all,

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.
csengyee
Junior Developer
Junior Developer
 
Posts: 19
Joined: Mon Jul 13, 2009 3:07 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 11 guests