Android Start task within specific time

≡放荡痞女 提交于 2019-12-25 08:45:06

问题


I want my task to be started at 12, 3, 6, 9 pm on every day. To these hours, a method should be called. How can I implement such a scenario. If anyone can grant a resource or code example, it is admirable.


回答1:


Check out the AlarmManager http://developer.android.com/reference/android/app/AlarmManager.html

Search stack for examples, here is one Alarm Manager Example



来源:https://stackoverflow.com/questions/10700003/android-start-task-within-specific-time

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