Idle Time on PocketPC

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

Guest

I want to be able to lock my application after a given period of 'idle' time.
How can I detect the idle state on the device?
I would also like to have my app locked at resume (from suspend)\power
cycle. How can I detect a power change event?
 
For the latter take a look at the sampe code here
http://www.alexfeinman.com/download.asp?doc=powerawareapp.zip It uses
message queues (not MSMQ!) available in CE 4.1 and later
As for the idle state, it depends what do you mean under idle state. You can
track input coming to your application, but I am not sure how to do this
system-wide. Perhaps the auto-suspend feature is sufficient for your needs
as your app will emerge locked from suspend if you implement the previous
suggestion.
 
Back
Top