在 Windows Phone 7.5 Mango 中实现闹钟
我想在 Windows Phone 7 mango 创建闹钟,为此建议我想使用PeriodicTask 有什么方法可以将计划间隔从 30 分钟缩短到每分钟吗?或者有更好的方法来实现闹钟。
谢谢你!!
I would like create alarm clock at windows phone 7 mango , for this propose I want to use PeriodicTask is there any way to shorten the Scheduled interval from 30 minutes to every minute? Or there is better way to implement alarm clock.
Thank You!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
定期任务每 30 分钟运行一次;你无法控制它们何时运行。
您应该使用 <代码>ScheduledActionService 与
警报
或提醒
。Periodic tasks run every 30 minutes; you cannot control when they run.
You should use the
ScheduledActionService
with theAlarm
orReminder
.定期任务将每 30 分钟正负 10 分钟触发一次。
没有办法改变这一点。
这样做是为了最大限度地延长电池寿命。
如果您要创建警报,请创建警报。
The periodic task will fire every 30 minutes plus or minus 10 minutes.
There is no way to alter this.
This is done to maximise battery life.
If you're creating an alarm then create an Alarm.
我建议使用此处详细介绍的警报类:
WP7闹钟应用
I would suggest using the alarm class as detailed here:
WP7 Alarm Application