TImer if device is turned off.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My application displays custom notification and requires reminder for the
notification i.e. in a time interval same notification should be repeated
untill user take action on it.
I am using Timer to periodically show the notification. This works fine will
the device is on. If the device is turned off the Timer also stops and I am
not able to display the notification.

Please let me know to get the reminder event in specified time interval in
my application if the device is on as well off.
 
You could consider using the Notify API functions which can wake up the
device at a specified time and either run an exe or raise a named event
which you can wait on in your application. The easiest way would be to use
the Notification functionality in the SDF (www.opennetcf.org/sdf/) where all
the relevant functionality is wrapped for .NETCF

Peter
 
Thanks a lot. I am using CeSetUserNotificationEx API with named event and
waiting in my application for the same event. This works fine but some times
stop waking up the device in following condition.
When I want CeSetUserNotificationEx to wakeup the application in every 1
min. and with battery settings turn off device if not used for 1 min.
In the above condition it wakes up device for few times say 10 or 15 and
after that device is turned off and never wake up at its own.

Please suggest some solution.

Thanks
- Simba
 
Back
Top