title: Restarting minimized android application
body: <p>In my application when user clicks logout button, app takes him to login screen again and when he pressess back button from that logIn screen, toast appears that "u must login to continue.</p>
  
  <p>I have done this to stop back navigation because if back navigation is possible then he would get all previous activities alive.
  After it when I press HOME button to exit from app, it minimizes the app and whenever I start my application, it starts from LogIn screen. </p>
  
  <p>I need it to start it from splash screen .. what should I do ?<br>
  I have used this code in login screen to make back navigation impossible.</p>
  
  <pre><code>      @Override
   public void onBackPressed() {
  
  
      Toast.makeText(getApplicationContext(), "You Must login to continue!", Toast.LENGTH_LONG).show();
  
      }
  </code></pre>
  
  <p>Is it a bad idea to use "HOME BUTTON" to exit from application?  </p>