title: Android log in/sign-up sample project
body: <p>Is there a reference sample project to implement a log in/sign-up welcome screen in Android?</p>
  
  <p>I have thought about what I would need to know to do this:</p>
  
  <ul>
  <li>Activity layout</li>
  <li>Text field validation</li>
  <li>Text field hints</li>
  <li>Enabling/disabling UI elements (i.e. press login only if data has been entered)</li>
  <li>Async network request validating credentials</li>
  <li>Blocking UI waiting for login</li>
  <li>Forwarding to next activity based on login result</li>
  <li>Sign-up interlude if 1st time user</li>
  <li>Cancelling network login if the user wants (do not crash on call-back if user moves away from Activity)</li>
  <li>Saving user data, access token if available otherwise password (and encrypt it)</li>
  <li>Transition animations, including "access denied" feedback</li>
  <li>Use cached credentials if available</li>
  <li>Login "remember me" opt-out</li>
  <li>etc.</li>
  </ul>
  
  <p>Many more bullet point to write down, but you get the idea.</p>
  
  <p>I suspect, correct me if I am wrong, that many apps may have (or even start in) a login/signup screen. Probably there is a customisable Eclipse project somewhere which captures most best practices so that devs don't reinvent the wheel much?</p>
  
  <p>Clearly, many apps will want to do things differently. Clearly, for some cases the above is nonesense. But.. maybe for some apps this is a reasonable "typical" login Activity?</p>