我得到了每500ms调用一次的timerTask。每次调用它都会冻结我的ui线程片刻。我的问题是如何让它在非UI线程中运行?
mTimer.schedule(keeper, 0, 500);
private class PlayerKeeper extends TimerTask {
@Override
public void run() {
new Thread(new Runnable() {
@Override
public void run() {}
});