我有一个应用程序,我使用 mHandler 作为计时器......它工作正常,然后 Runnable MuPdeteTimeTask 工作......这是一个代码......
mHandlerTime.removeCallbacks(mUpdateTimeOutTask);
mHandlerTime.postDelayed(mUpdateTimeOutTask, delay_timeoutzz);
.....................................
private Runnable mUpdateTimeOutTask = new Runnable() {
public void run() {
Toast.makeText(getApplicationContext(), "TimeOut of session is reached! Session will be force closed!", Toast.LENGTH_LONG).show();
new UploadTask().onCancelled();
}
};
我怎么能阻止它或想要定义“延迟”的新含义????