I am new to android development. I am developing an android app, in which I have few views, say login view, view A, view B, view C and view D etc..
My initial view is a login view. User enter their credentials and if they are valid, view A (for a particular user role) will be displayed.
Now, user clicks the phone home button and now my application is running in background mode.
When user clicks back my app icon, it displays the login view. But actually I need to display view A.
Why is it so? I don't find any error stack trace. Can anyone please suggest me what I am doing wrong.
Thank you.