我有一個TimerTask在Android的一個問題,我有這樣的代碼:如何更改android中的新TimerTask動作?
timer = new Timer();
timer.schedule(new TimerTask() {
public void run() {
countInt = countInt + 1;
textview1.setText(countInt);
}
}, 1000);
定時任務獲得startet我的應用程序崩潰每一次,我的事情,因爲我訪問TextView的,它是在其他線程權利?
如何解決這個問題?