在调度使用Android的报警管理器任务 [英] Scheduling a Task using Alarm Manager in Android
本文介绍了在调度使用Android的报警管理器任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想告诉陈旧栏通知时,应用程序在后台。我用AlarmManager来实现的任务。但是,我想重复AlarmManager为1分钟3次,也就是我想表现陈旧栏通知时,应用程序在后台1分钟间隔的三倍。我看到 setRepeating
AlarmManager的方法,它允许你在1分钟重复有限区间。任何一个可以帮助我?
I want to show stale bar notification when the app is in the background. I used AlarmManager to to implement the task. But I want to repeat AlarmManager for a 1 min for three times, ie I wanted to show stale bar notification when the app is in background for 1 min interval for three times. I saw setRepeating
method of AlarmManager which allows you to repeat at 1 Min intervel. Can any one help me with this?
推荐答案
在这个博客看看的 *的计划任务使用报警管理* 的
这是很好用例子来解释。
Here it is well explained with example.
这篇关于在调度使用Android的报警管理器任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文