title: Android: Replication of Screen Timeout function (in Android Setting app)
body: <p>We can set a Screen Timeout in Settings App (Say 30 sec) (Settings --> Display --> Screen Timeout). If u keep the phone idle for 30 sec the phone will be locked.</p>
  
  <p>Is it possible to create an Application which will listen the Idleness of the device and get triggered after a specific amount of time?</p>
  
  <p>Note: I need to monitor the device idleness not my app's, i.e, i can use onUserInteraction() but this should be used at my activity level,but i need at my device level.</p>
  
  <p>For example, I am running a service alone, User has launched a App (Say Facebook app) and he keeps the app open for 10 min, Now my service should recognize that the facebook app is idle for 10 min (As the Setting App recognizing)..</p>