/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
protected Handler taskHandler = new Handler(); protected void setTimer( long time ) { public void run() { runNextTask(); } }; taskHandler.postAtTime(t, SystemClock.uptimeMillis() + time); } protected void runNextTask() { // timer finished };