title: Android Studio - Button click not switching to next activity
body: <p>Added an OnClickListener to my button. I would like it to switch to 'Step1' activity when I click the button. When I debugged it, I clicked on the button but nothing happened. It stayed on 'MyActivity' activity. Here's my main activity:</p>
  
  <pre><code>package apk.olley102.roothelp;
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
  import android.widget.TextView;
  
  public class MyActivity extends Activity {
      Button step1btn;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_my);
          step1btn = (Button) findViewById(R.id.step1btn);
          step1btn.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Intent openStep = new Intent("apk.olley102.roothelp.Step1");
                  startActivity(openStep);
              }
          });
      }
  }
  </code></pre>
  
  <p>I added the button in the activity_main.xml and associated the layout to the activity. Also added MainActivity.java and Step1.java to the AndroidManifest.xml
  Any help would be appreciated!</p>