Top "Timertask" questions

Timertask is a Java API class.

java Timer TimerTask multiple threads

I'm using Timer and TimerTask to long poll for new messages for a chat application. I would like to examine …

java multithreading timer timertask
Android Asynctask vs Runnable vs timertask vs Service

What are the differences between these methods (classes)? I want to run a app that runs every 5 seconds, clear the …

android service android-asynctask runnable timertask
Java: Scheduling a task in random intervals

I am quite new to Java and I'm trying to generate a task that will run every 5 to 10 seconds, so …

java random timer timertask
Java - Timer.cancel() v/s TimerTask.cancel()

In my Android application, I run a timer and cancel it on some other event: class MyTimerTask extends TimerTask { override …

java android timer timertask
Android: Restart Timer

I created a TimerTask with the following code: Screen_Timer_Task = new TimerTask() { @Override public void run() { runOnUiThread(new Runnable() { @…

java android eclipse timer timertask
TimerTask is already scheduled

I have a MediaPlayer object which plays a local audio file. I am using a TimerTask to update the position …

java android android-mediaplayer timertask
Using single Timer vs multiple Timers for scheduling TimerTasks in Android

I think I don't fully understand how the Timer and TimerTask work in Java and Android. Now, I have a …

java android multithreading timer timertask
Android Handler for repeated task - will it overlap ? Timer-task VS handler VS alarm-manager

I'm trying to build an Android app which will repeatedly run some process every 10 mins. As I found out Handlers …

java android alarmmanager timertask android-handler
Java Timer.schedule runs only once

I have a TiimerTask which should run based on a Timer.schedule. The problem is it only runs once when …

java timertask
How can I implement a Timer/TimerTask that executes an AsyncTask? (Android)

I'm trying to perform a task (ie. load data from a text file) asynchronously and repeatedly at specified times (ie. …

android multithreading timer android-asynctask timertask