Hi all,

My application has several Activities which the user can interact with
and open Dialog Boxes from them.
I need a way to detect when there is no user interaction with any of
the Activities and Dialog Boxes
after a certain amount of time (configurable by the user) and force a
logout of the application.
When this happens, the user will be shown a Login screen and needs to
supply a password.
This login Activity is the only one which the user can stay as long as
he wishes.

I installed an Idle Handler in the application Message Queue using
MessageQueue.addIdleHandler()
but the handler is called periodically even when no interaction
occurs.

I think I need to intercept all the system events for touch, keys and
trackball sent to any of my
Activities and Dialog Boxes to restart my inactivity timer but I
didn't find any way to do this.

Any ideas or hints on how to implement this ?
Thanks.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to