title: Can't go to the next Activity with an Intent
body: <p>I am definitely missing something so I need an extra pair of eyes!</p>
  
  <p>I have a button and when is clicked I want the <code>NewConnection</code> <code>Activity</code> to appear.</p>
  
  <p>I have declared all of the Activities in AndroidManifest.xml but it doesn't work.</p>
  
  <p><em>MainActivity</em>:</p>
  
  <pre><code>public class MainActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          // Set the user interface layout for this Activity
          setContentView(R.layout.activity_main);
      }
  
      //button addButton take you to NewConnection Activity
      public void newConnection(View view) {
          Intent intent = new Intent(MainActivity.this, NewConnection.class);
          startActivity(intent);
      }
  }
  </code></pre>
  
  <p><em>NewConnection</em></p>
  
  <pre><code>public class NewConnection extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          // Set the user interface layout for this Activity
          setContentView(R.layout.activity_new_connection);
      }
  }
  </code></pre>
  
  <p><em>AndroidManifest</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="tuwien.process_monitoring"
      android:versionCode="1"
      android:versionName="1.0"&gt;
  
      &lt;uses-sdk
          android:minSdkVersion="14"
          android:targetSdkVersion="21" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
  
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name" &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=".NewConnection"
              android:label="@string/app_name"&gt;          
          &lt;/activity&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>