title: Android Logout timer
body: <p>I have made an app. I want to automatically log out from the app after the certain time period when user exit app or app running in the background. I have created timer but it doesn't work as when the app goes in <code>onStop()</code> timer also becomes stop. What should I do for this problem?</p>