I can't seem to connect the HomeActivity to LogInActivity. The error said ActivityNotFound. No Activity found to handle Intent
<p>Here's my LogInActivity</p>

<pre><code>public class LogInActivity extends Activity implements OnClickListener {
@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.loginactivity);

Button launch = (Button)findViewById(R.id.login_button);
        launch.setOnClickListener(new OnClickListener()
        {
         public void onClick(View v) {
           EditText usernameEditText = (EditText) findViewById(R.id.txt_username);
           EditText passwordEditText = (EditText) findViewById(R.id.txt_password);
           TextView loginTextView = (TextView)findViewById(R.id.tv_error);

           String sUserName = usernameEditText.getText().toString();
           String sPassword = passwordEditText.getText().toString();

            if(sUserName.equals("numlock") &amp;&amp; sPassword.equals("numlock")){
                Intent i = new Intent();
                startActivity(i);
            }
             else {
                loginTextView.setText("Login failed. Username and/or password doesn't match.");
                 }
            }
        }); 
    }

    public void onClick(View v)
        {
            Intent intent = new Intent(LogInActivity.this, HomeActivity.class);
            startActivity(intent);
        }
}
</code></pre>

<p>and here's my HomeActivity</p>

<pre><code>public class HomeActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.homeactivity);
    }
}
</code></pre>
