title: Android Login - Best implementation
body: <p>I'm planning to implement an Android application that requires a login screen.</p>
  
  <p>If the user opens the activity something like this should happen:</p>
  
  <ol>
  <li>If user is logged in, goto 3</li>
  <li>If user is not logged in open the login screen and perfom login</li>
  <li>Show my application content</li>
  </ol>
  
  <p>So, what's the "correct" way of implementing a login?</p>
  
  <ol>
  <li>Implement a <code>StartActivity</code> that perfoms the check if the user is logged in, implement a <code>LoginActivity</code> that implements the logging and an <code>ApplicationActivity</code> that actually implements the application logics?</li>
  <li>Implement just one Activity and handle the login by using multiple views which I show according to the application state?</li>
  </ol>
  
  <p>Are there any examples or tutorials for this scenario?</p>