2011年7月21日 - Edit 2: here's an example of using a TimerTask to run something every 5 seconds. The key is the runOnUiThread() . There may be better ways ...
stackoverflow.com