Return to Snippet

Revision: 48618
at July 6, 2011 18:12 by KolNedra


Initial Code
protected Handler taskHandler = new Handler();
protected void setTimer( long time ) {
	Runnable t = new Runnable() {
	    	public void run() {
			runNextTask();
	    	}
        };
	taskHandler.postAtTime(t, SystemClock.uptimeMillis() + time);
}
     
protected void runNextTask() {
	// timer finished
};

Initial URL

                                

Initial Description

                                

Initial Title
[android] setTimeout

Initial Tags
android

Initial Language
Java