title: Application crashes with ActivityNotFoundException
body: <p>I have some issues with next activity -
  I made a button, and when you click on it, an intent is being made, and then you <code>startActivity()</code> with the intent.</p>
  
  <p>I declared the source and the destination classes. Everytime I click the button, it closes the app and says "Unfortunately, My First Application has stopped." Any help?
  Thanks in advance.</p>
  
  <pre><code>package com.myfirstapplication.owner.myfirstapplication;
  
  import android.content.Intent;
  import android.os.Handler;
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
  import android.widget.ProgressBar;
  import android.widget.TextView;
  
  public class MainActivity extends AppCompatActivity {
  
      Button nextAc;
  
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          nextAc = (Button) findViewById(R.id.nextPageButton);
  
          nextAc.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Intent i = new Intent(MainActivity.this, SecondActivity.class);
  
                  Bundle fromMain = new Bundle();
                  fromMain.putString("BundleInfo","Look at that.");
  
                  i.putExtras(fromMain);
                  startActivity(i);
  
              }
          });
  
      }
  }
  </code></pre>
  
  <p>Log:                                                                     </p>
  
  <pre><code>06-15 12:10:03.673 2389-2389/com.myfirstapplication.owner.myfirstapplication E/AndroidRuntime: FATAL EXCEPTION: main
     Process: com.myfirstapplication.owner.myfirstapplication, PID: 2389
     android.content.ActivityNotFoundException: Unable to find explicit activity class {com.myfirstapplication.owner.myfirstapplication/com.myfirstapplication.owner.myfirstapplication.SecondActivity}; have you declared this activity in your AndroidManifest.xml?
         at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1794)
         at android.app.Instrumentation.execStartActivity(Instrumentation.java:1512)
         at android.app.Activity.startActivityForResult(Activity.java:3917)
         at android.app.Activity.startActivityForResult(Activity.java:3877)
         at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:842)
         at android.app.Activity.startActivity(Activity.java:4200)
         at android.app.Activity.startActivity(Activity.java:4168)
         at com.myfirstapplication.owner.myfirstapplication.MainActivity$1.onClick(MainActivity.java:76)
         at android.view.View.performClick(View.java:5198)
         at android.view.View$PerformClick.run(View.java:21147)
         at android.os.Handler.handleCallback(Handler.java:739)
         at android.os.Handler.dispatchMessage(Handler.java:95)
         at android.os.Looper.loop(Looper.java:148)
         at android.app.ActivityThread.main(ActivityThread.java:5417)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
  06-15 12:10:06.361 2389-2389/com.myfirstapplication.owner.myfirstapplication I/Process: Sending signal. PID: 2389 SIG: 9
  </code></pre>
  
  <p>Second activity:</p>
  
  <pre><code>package com.myfirstapplication.owner.myfirstapplication;
  
  
  import android.os.Bundle;
  import android.support.v7.app.AppCompatActivity;
  import android.widget.TextView;
  
  
  public class SecondActivity extends AppCompatActivity {
  
      TextView tv;
  
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.second_activity);
  
          TextView tv = (TextView)findViewById(R.id.tvID);
  
          Bundle fromMain = getIntent().getExtras();
          tv.setText(fromMain.getString("BundleInfo"));
      }
  
  }
  </code></pre>