schedule Timer After milliseconds - Android java.util

Android examples for java.util:Timer

Description

schedule Timer After milliseconds

Demo Code


//package com.java2s;

import java.util.Timer;
import java.util.TimerTask;

public class Main {
    public static Timer scheduleAfter(int msec, TimerTask timerTask) {
        Timer timer = new Timer();
        timer.schedule(timerTask, msec);//?~???b???N??
        return timer;
    }//ww w .j a v a2  s. c  o  m
}

Related Tutorials