PDA

View Full Version : Lock screen after inactivity time



baobui
20th March 2011, 07:02
Hi all,

I am developing an application on mini2440 board (ARM9).
How can i show an lock screen after an inactivity time (just similar to ubuntu) and allow the user enter password to unlock it?

Thank you very much.

Bao

wysota
20th March 2011, 22:18
If your application is the only one running on the machine then you can have a timer running that triggers a lock. You would reset the timer by filtering events that reach the application object. If your app is not the only one running then you have to rely on the windowing system (like the X Server) to give you such information.