Counting task
This task is used for repeating actions being sent to the server, and then automatically stopping after a certain amount of runs.
Creating the task
new CountingTask(INITIAL DELAY, REPEATING DELAY, COUNT) {
@Override
public void run() {
//RUN SOMETHING
}
};task.cancel();int id = task.getId();Last updated