Implement alarm clock in Windows Phone 7.5 Mango
I would like create alarm clock at windows phone 7 mango , fo开发者_JS百科r 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!!
Periodic tasks run every 30 minutes; you cannot control when they run.
You should use the ScheduledActionService
with the Alarm
or Reminder
.
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.
I would suggest using the alarm class as detailed here:
WP7 Alarm Application
精彩评论