Timer/TimerTask Error
问题 I just started with programming of android applications and right now I have a problem with timer and timer tasks. In my app I use a timer to update the UI but when I start to test it gets an error and I have to force close it. Here is my timer code: int delay = 5000; // delay for 5 sec. int period = 1000; // repeat every sec. Timer timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { public void run() { moveLettersInCircle(); } }, delay, period); Logcat says this: 07-30 18:40:12