How to keep Windows Mobile Professional offline

I have a .net 3.5 application running on Windows Mobile Professional that uses sql server ce 3.5 and merge replication with SQL Server 2005 sp2, this is not a 1.0 product yet. Merge replication starts every couple of minutes using a timer. I suppose along this line I will have to have some kind of push senario, either using long lived HTTP requests or Window Mobile Email WCF. However, at the same time, my problem is that the devices "sleep", waiting for the polling timer, either by the device reaching it, or idle, or by pressing the wait button. I thought it was just the screen and keyboard disabled, but it turns out that most of the device functions, including my app,

Is there a way to capture the fallback event and just turn off the screen and keyboard, but keep the application?

0


source to share


3 answers


I recommend that you do not disable hibernation, but instead log events to wake up your device and start your task. Take a look at Smart Device Framework on OpenNetCf . Among others, you will find:

  • Wake-up event logging methods
  • Event handlers for Power Down events


Most of them are in the OpenNETCF.WindowsCE namespace.

+2


source


Do suggestions help you in this?



CodeProject has this article with a very detailed explanation of Windows Mobile power states.

+1


source


Maybe the answer to this SO question will help: How to run code on Windows Mobile while it is suspended? It uses unattended mode to keep the app running with the screen off.

0


source







All Articles