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);
アプリケーションを終了して ([ホーム] をクリック)、その後アプリケーションを復元すると、タスクがキャンセルされます。その問題を解決する方法は?
このタスクにはサービスを使用してください: チュートリアル