title: Android: Cannot Start New Activity Using Intents
body: <p>I am trying to launch a new activity when a button is pressed but nothing happens and I get no errors. Here is my code:</p>
  
  <p>Main activity</p>
  
  <pre><code>public class CSLearn_Python_AppActivity extends Activity {
  
  
  String tag = "Events";
  
  /** Called when the activity is first created. */
  
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
  
  
      //get content from main.xml
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
  
  
      Button login = (Button) findViewById(R.id.loginBtn);
      login.setOnClickListener(new OnClickListener(){
          public void onClick(View v){
  
  
  
  //              Intent intent = new Intent("com.Main.Verification");   
  //              startActivity(intent);
  
              Intent myIntent = new Intent(getBaseContext(), Verification.class);
              startActivity(myIntent);
  
          }
      });
  
  
  
   }
  </code></pre>
  
  <p>The new activity</p>
  
  <pre><code>    import android.app.Activity;
  import android.os.Bundle;
  
  public class Verification extends Activity{
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
  
      super.onCreate(savedInstanceState);
      setContentView(R.layout.verification);
  
  }
  
  }
  </code></pre>
  
  <p>Verification XML</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/linearLayout1" android:layout_width="match_parent" android:baselineAligned="true" android:layout_height="match_parent" android:layout_gravity="center" android:gravity="center" android:orientation="vertical"&gt;
      &lt;TextView android:text="@string/Verification" android:id="@+id/Verrification" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/TextView&gt;
      &lt;EditText android:layout_height="wrap_content" android:id="@+id/password" android:inputType="textPassword" android:layout_width="112dp"&gt;
          &lt;requestFocus&gt;&lt;/requestFocus&gt;
      &lt;/EditText&gt;
      &lt;Button android:text="@string/LoginBtn" android:id="@+id/loginBtn" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/Button&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I added this to the android manifesto</p>
  
  <pre><code>&lt;activity android:name=".Verification"
                android:label="Verification"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.Main.VERIFICATION" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>If anyone can point me in the right direction it would be really appreciated. </p>