title: Detect when application is idle in Android
body: <p>I am developing an application that will be running in Kiosk Mode. In this application, if the user didn't do anything in the application within 5 minutes, the application will show a screen saver that is the logo of the application. </p>
  
  <p>My question is, <strong>how can I code on detecting IDLE within 5 minutes?</strong></p>