title: Lock android app after a certain amount of idle time
body: <p>My android application requires a password to be entered in the first activity. I want to be able to automatically send the application back to the password entry screen after the application has been idle for a fixed amount of time.</p>
  
  <p>The application has multiple activities, but I would like the timeout to be global for all activities. So, it wouldn't be sufficient to create a timer thread in the <code>onPause()</code> method of an <code>Activity</code>.</p>
  
  <p>I'm not sure what the best definition for the application being idle is, but no activities being active would be sufficient.</p>