Application not exiting:
<p>In my application, first activity is login page activity. </p>

<p>Users enter <code>username and password</code>  and enter into the home page activity. </p>

<p>If you logout from home page, it moves to the login page activity. Now,if you press back button my application should be closed, but it enters into the home page again.. </p>

<p>But initially when login page activity is launched and while pressed back button without entering into the home page activity. application is closing.. </p>
