1 ScheduledExecutorService exec = Executors.newSingleThreadScheduledExecutor(); 2 exec.scheduleAtFixedRate(new Runnable() { 3 @Override 4 public void run() { 5 Shout.loadUrl("http://www.bengaard.com/OB/shoutstart.php?konto="+konto); 6 } 7 }, 20, 20, TimeUnit.SECONDS);