我有运行下一个代码的服务:
ScheduledExecutorService timer ;
timer = Executors.newScheduledThreadPool(1);
timer.schedule(new MyTimerTask(), 15*60, TimeUnit.SECONDS);
But from some reason it is not working.
有人知道吗? 非常感谢, 可人
最佳答案
注意确保您没有在执行前销毁 ScheduledExecutorService 引用持有者对象
关于android - ScheduledExecutorService 计划不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10091376/