123456789101112131415161718192021222324 |
- package de.tudarmstadt.informatik.hostage.sync.wifi_direct;
- /**
- * Created by Julien on 18.02.2015.
- */
- public class TimerTask extends BackgroundTask {
- private int seconds;
- public TimerTask(int seconds, BackgroundTaskCompletionListener l){
- super(l);
- this.seconds = seconds;
- }
- public boolean performInBackground(){
- try {
- Thread.sleep(this.seconds * 1000);
- } catch (InterruptedException e){
- // what ever
- return false;
- }
- return true;
- }
- }
|