Application idle timeout - Want to implement autolock for a specific idle interval
<p>Is there a way to know application(any activity/sub activity/alert
dialogs etc) idle timeout. For example if i did not respond to an
activity for a particular time, how would i know the idle timeout for
that activity. Actually i want to implement auto lock for a specific
idle time interval.</p>

<p>Or is there a way to know that an event has been occurred inside
application ( inside any activity/sub activity/alert dialogs etc) so
that to run a custom method at that point to lock application. In
other words any class that dispatches or sends all events for any
activity/sub activity/ alert dialogs etc?</p>

<p>Currently i am handling onUserInteraction/onResume/onPasue etc events
for each activity etc. but it is not reliable and require a lot of
code.</p>

<p>Kind Regards
Muhammad Rashid</p>
