Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用这样的代码:
t = new Timer(); t.schedule(new TimerTask() { @Override public void run() { //some action } }, 30000, 30000);
如果我结束应用程序(单击主页),然后恢复应用程序,则任务被取消。如何解决这个问题?
使用此任务的服务: 教程