I have a requirement of Logging out the user from the app when he goes to background and make a service call indicating logout is done. Also the same has to be done if user is inactive for a few minutes.
Can some one help me in this regard. A sample would be more helpful.