This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Timers & TimerTasks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Timers & TimerTasks" Watch "Timers & TimerTasks" New topic
Author

Timers & TimerTasks

Bill Ceglia
Ranch Hand

Joined: Dec 13, 2001
Posts: 30
I am having a difficult time getting one or more timers to use one or more timertasks. I need to start multiple tasks and depending on the situtation restart one or more of the tasks. However, when I attempt to do this it seems as though the task never restarts or has been killed for some reason? I use the cancel() method to stop the task and then create a new task and schedule it on a existing timer, is this correct? Does anyone have an example of multiple timers and multiple timertasks being used where they are started, stopped, and restarted? If not what is a alternative beside managing time myself? Any help would greatly be appreciated!
Thank You,
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Timers & TimerTasks
 
Similar Threads
Thread for a given time window
basic concept level question regarding threads
How to run Multiple Timer Tasks concurrently??
java.util.Timer problems
TimerTask, Thread