title: Android Studio Register Link
body: <p>I created a register link but it doesn't work . I want the "Register Here" link to send me from the login page to the register page . It worked before when I got an answer to my previous question on here but now it's not working for me . Can someone help me ?</p>
  
  <p>Login.java :</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_login);
  
  etUsername = (EditText) findViewById(R.id.etUsername);
  etPassword = (EditText) findViewById(R.id.etPassword);
  tvRegisterLink = (TextView) findViewById(R.id.tvRegisterLink);
  bLogin = (Button) findViewById(R.id.bLogin);
  
  bLogin.setOnClickListener(this);
  tvRegisterLink.setOnClickListener(this);
  
  userLocalStore = new UserLocalStore(this);
  }
  </code></pre>
  
  <p>AndroidManifest.xml :</p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme" &gt;
      &lt;activity android:name=".MainActivity"
          android:label="Login register"
          &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".Login"
          android:label="Login" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".Register"
          android:label="Register" &gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>activity_login.xml :</p>
  
  <pre><code>&lt;TextView
      android:clickable="true"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Register Here"
      android:id="@+id/tvRegisterLink"
      android:layout_alignParentBottom="true"
      android:layout_centerHorizontal="true"
      android:onClick="onClick" /&gt;
  </code></pre>