1. 创建Handler对象
final Handler mHandler = new Handler();
2.创建Runnable 对象
Runnable mDoTimer = new Runnable() { public void run() { doTimer(); } };3.以postDelayed()方法使用Handler,间隔1秒
void doTimer() { ... mHandler.postDelayed(mDoTimer, 1000); ... }4.在某个地方调用doTimer()启动即可
... doTimer(); ...