Added configurable timeout for inactivity.

Added another option to configure the timeout from inactivity (Android only).  Useful for testing, and developing test cases where you don't want the session to disappear on you.