writing a time out event for android
<p>i have a small issue i can't figure out.
for my program, i basically want to execute some code if the user hasn't done anything with the application for 5 minutes (say log out).</p>

<p>how can i go about doing this? i'm lost on detecting that the user has done nothing, and then reset the count once the user has touched the tablet or something.  can somebody give me some pointers?</p>

<p>thanks in advance!</p>
