11-17-2008 05:58 PM
I try to use the Timer.schedule(TimerTask task,long delay,long period) API but somehow I don't do it right.
So I want to call this timer every 20 minutes. Here is my code:
timer.scheduleAtFixedRate(new CountDown(),5000, (20 * 1000) * 60);
20 is the number of minutes
1000 is the conversation to milliseconds
60 is the conversation to seconds
whaat am I doing wrong? Doesn't that execute the timer every 20 minutes?
11-18-2008 04:32 AM