开发者

Android Task Schedule

开发者 https://www.devze.com 2023-01-29 06:48 出处:网络
I\'m trying to write an application that will execute a task based on the time of day. Example: it\'s noon, send a reminder to go to lunch. Anyone know how to accomplish this?

I'm trying to write an application that will execute a task based on the time of day. Example: it's noon, send a reminder to go to lunch. Anyone know how to accomplish this?

I can schedule tasks based on a tim开发者_如何学编程er, but that's not exactly what I'm looking for.

Thanks


Use the AlarmManager, specifically: http://developer.android.com/reference/android/app/AlarmManager.html#set%28int,%20long,%20android.app.PendingIntent%29

0

精彩评论

暂无评论...
验证码 换一张
取 消