title: Example and explanation: Android (Studio) Login Activity Template generated activity
body: <p>I wanted to implement a login form in my app, so I tried to use the code generated by the Android Studio Wizard for a new Activity of type Login Form. i think that the code generated by Eclipse is almost the same.</p>
  
  <p>Unfortunately, the generated code did not provide the expected result: I created a nice simple login form, but with correct or wrong password, it does not move from the login form.</p>
  
  <p>Also I noticed that no "Register" form was created.</p>
  
  <p>After looking a bit, and analyzing the code, I finally got it working :)</p>
  
  <p>See my response below.</p>