how to know if UI is idle for X time?
<p>I have a servery app. That ask questions from users.
What I want to do. If user did not do any thing with UI for the 1 mint... Then I must terminate the server.</p>

<p>What should I do for this?</p>

<p>I know ACTION_SCREEN_OFF. This event actually called when screen time out. That may be 30 mint? depend on user setting.
But let suppose user set time out for 30mint. and this event will call after 30 mint. But I want to know if UI is idle for 1 mint only.</p>
