L
LEM
Hi all,
I have been for almost 2 days trying everything.
I need to wake up the device once the PDA is in idle mode (the user
pressed the power button)
I tried with SetSystemPowerState,RunAppAtTime and they don't work.
The only one that works is using the attached code. The problem is once
the device is waken up it will show a Notification dialog. If I change
the NotificationAction to something different (the available options
are Led,Private,Repeat,sound,Vibrate) it just doesn't wake up.
I thought that maybe the device was really awake but the screen was
off, but it doesn't, because I did some testing with a timer and writing
some text to the screen and it doesn't write any text until I press the
Power button again.
Here is the one that works but it shows that damn dialog:
OpenNETCF.WindowsCE.Notification.UserNotificationTrigger trigger = new
OpenNETCF.WindowsCE.Notification.UserNotificationTrigger();
trigger.Application = GetAppPath() + "\\Power.exe";
trigger.Type = OpenNETCF.WindowsCE.Notification.NotificationType.Time;
trigger.StartTime = DateTime.Now.AddSeconds(20);
OpenNETCF.WindowsCE.Notification.UserNotification n = new
OpenNETCF.WindowsCE.Notification.UserNotification();
n.Action = OpenNETCF.WindowsCE.Notification.NotificationAction.Dialog;
n.Title = "Reminder";
n.Text = "test";
OpenNETCF.WindowsCE.Notification.Notify.SetUserNotification(trigger, n);
Any help would be appreciated.
Thanks
I have been for almost 2 days trying everything.
I need to wake up the device once the PDA is in idle mode (the user
pressed the power button)
I tried with SetSystemPowerState,RunAppAtTime and they don't work.
The only one that works is using the attached code. The problem is once
the device is waken up it will show a Notification dialog. If I change
the NotificationAction to something different (the available options
are Led,Private,Repeat,sound,Vibrate) it just doesn't wake up.
I thought that maybe the device was really awake but the screen was
off, but it doesn't, because I did some testing with a timer and writing
some text to the screen and it doesn't write any text until I press the
Power button again.
Here is the one that works but it shows that damn dialog:
OpenNETCF.WindowsCE.Notification.UserNotificationTrigger trigger = new
OpenNETCF.WindowsCE.Notification.UserNotificationTrigger();
trigger.Application = GetAppPath() + "\\Power.exe";
trigger.Type = OpenNETCF.WindowsCE.Notification.NotificationType.Time;
trigger.StartTime = DateTime.Now.AddSeconds(20);
OpenNETCF.WindowsCE.Notification.UserNotification n = new
OpenNETCF.WindowsCE.Notification.UserNotification();
n.Action = OpenNETCF.WindowsCE.Notification.NotificationAction.Dialog;
n.Title = "Reminder";
n.Text = "test";
OpenNETCF.WindowsCE.Notification.Notify.SetUserNotification(trigger, n);
Any help would be appreciated.
Thanks