Android用程序定时器
FixTimer timer = FixTimer.newInstance()
.setDelay(5000)
.setRunnable(new Runnable() {
@Override
public void run() {
// Do something here
}
})
.start();
timer.cancel();
取消后Runnable内容不会再被调用