TheTwoTimer twotimer = new TheTwoTimer();
twotimer.timetwo.cancel();//你在这儿把schedule取消了,当然没办法执行咯!

解决方案 »

  1.   

    public class MyTimerTask extends TimerTask {
        public void run() {
            TheTwoTimer twotimer = new TheTwoTimer();
            twotimer.timetwo.cancel();////////我带了好大个显微镜看到了它,你往哪里跑你这个大bug,哈哈        try{
                ConnThread connThread=new ConnThread();
                connThread.start();
            }
            catch(Exception e){
                e.printStackTrace();
            }
        }
    }