Android : how to maintain session on back button?
<p>My App contains two Activity Classes. from first activity user can login and from second activity user can view their project details.I'm maintaining session also with logout button. In my app if user clicked on back button from second activity then it goes to apps section(means main menu) and after some time user clicked on my app icon it goes to first activity not second activity yet user didn't logout. <br/><code>I want user should go to second activity not first activity if user already login</code>. I had tried but 
not working and still I am trying. <br/>
How can i do the above stuff please anybody suggest me the answer.</p>
