I got the solution of get back to the first activity by pressing
previous button without changing data of first activity. Now, the user
will enter his credentials. When he click to proceed further, the
credential details will directly go to the server and server gives
response with the cookie and that cookies should be store in my phone
for the usage for the future. It means that when the user again run
the application he should directly loggedin in to the application,
If you have any idea as mentioned above, please share me.