In my method, I want to call another method that will run 1 second later. This is what I have.
final Timer timer = new Timer(); timer.schedule(new TimerTask() {
Instead of a Timer, I'd recommend using a ScheduledExecutorService
Timer
final ScheduledExecutorService exec = Executors.newScheduledThreadPool(1); exec.schedule(new Runnable(){ @Override public void run(){ MyMethod(); } }, 1, TimeUnit.SECONDS);