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.
我有一个线程需要每 1000 毫秒在后台运行一次。它无法在 UI 中运行,因为它会冻结应用程序。我应该使用什么方法来执行此操作?
TimerTask似乎非常适合我。