|
sorry to hijack this thread, but i wanted to let people know about
http://forums.precentral.net/web-os-...timer-app.html
i am in no way affliated with timer on a stick
i dont seem to have a problem with the timer or stopwatch stopping when the card is switched away or the screen turned off. as a matter of fact, i have the timer running in a minimized card and it's still going. so for anyone that thinks webos isn't multitasking, it really is. FYI, the reason other apps stop working (i.e. youtube) when minimized is because it's coded to behave that way to save on power. its a palm suggested best practice to reduce processing when not in context. i haven't done it with my app yet, and it may depend on user feedback. i actually like see the app update even when minimized.
i just quickly glanced at your source code, and one suggestion. try something like this:
this.interval = this.controller.window.setInterval(
function(){
DO WHATEVER YOU DO TO UPDATE YOUR DISPLAY
}.bind(this), 1000);
see if that gets your timer to keep working
|
|
|