Top "Timertask" questions

Timertask is a Java API class.

TimerTask vs Thread.sleep vs Handler postDelayed - most accurate to call function every N milliseconds?

What is the most accurate way to call a function every N milliseconds? Thread with Thread.sleep TimerTask Handler with …

java android multithreading handler timertask
How to use Java.Util.Timer

I want to make a simple program that counts seconds up until 100 using Java.Util.Timer The code below is …

java timer timertask
Timer and TimerTask in Android

I need a timer for my program. I have written it and it works fine on PC in emulalator program (…

android timer timertask
A better way to run code for a period of time

I need to run some code for a predefined length of time, when the time is up it needs to …

java timertask
Timer schedule vs scheduleAtFixedRate?

public class MyTimerTask extends TimerTask{ @Override public void run() { int i = 0; try { Thread.sleep(100000); } catch (InterruptedException e) { e.printStackTrace(); } System.…

java multithreading timer timertask
Where do I create and use ScheduledThreadPoolExecutor, TimerTask, or Handler?

I need to make my RSS Feed reader check the feed every 10 minutes for new posts, and then parse them …

android handler threadpool timertask scheduledexecutorservice
How to call a thread to run on specific time in java?

I want o make threads execute at specific exact times (for example at: 2012-07-11 13:12:24 and 2012-07-11 15:23:45) I checked …

java multithreading timertask
How to Pass Arguments to Timertask Run Method

I have a method and I want it to be scheduled for execution in later times. The scheduling time and …

java scheduling timertask
How to use TimerTask with lambdas?

As you hopefully know you can use lambdas in Java 8, for example to replace anonymous methods. An example can be …

java lambda abstract-class timertask java-8
How to determine whether the Timer task has completed

I have this following code : Timer timer = new Timer(); TimerTask task = new TimerTask() { @Override public void run() { // TODO Auto-generated method …

java android timer timertask