Quartz in Spring, like that scheduler in Android?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 06:28:39

问题


I searched a lot. But i can't get the solution for it. In Spring, Quartz is used as a scheduler to repeat the particular task. Likewise in android, what is the scheduler is available to do the task repeatedly at the particular time intervals. I need a scheduler for Android and also i want to avoid memory leakage. I am having 5 different types of settings. All having the update interval time option. So i want to get the information from server based on the interval time.


回答1:


If running within your Activity or service, use Timer and TimerTask.

Further, there is AlarmManager for extended schedules, and Commonware's excellent extension of a WakefulIntent.



来源:https://stackoverflow.com/questions/14823717/quartz-in-spring-like-that-scheduler-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!