问题
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