Idle Time on PocketPC

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?
 
A

Alex Feinman [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top