title: why does this onclicklistener not work?
body: <p>I created this click listener in a android project, it is taken from a tutorial.<br>
  It worked there but does not seem to work when I tried it in my new app.</p>
  
  <pre><code> ImageView animals = (ImageView) findViewById(R.id.anim);
  
      animals.setOnClickListener(new OnClickListener() {
          @Override
          public void onClick(View v) {
  
              Intent animalsIntent = new Intent(MainActivity.this, animals.class);
  
              // Start the new activity
              startActivity(animalsIntent);
          }
      });
  </code></pre>
  
  <p>The app crashes when I do this.
  This is the logcat error message:</p>
  
  <pre><code>03-13 23:28:21.750 7734-7734/com.example.android.trollsounds E/AndroidRuntime: FATAL EXCEPTION: main
                                                                                 Process: com.example.android.trollsounds, PID: 7734
                                                                                 android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.android.trollsounds/com.example.android.trollsounds.animals}; have you declared this activity in your AndroidManifest.xml?
                                                                                     at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1895)
                                                                                     at android.app.Instrumentation.execStartActivity(Instrumentation.java:1589)
                                                                                     at android.app.Activity.startActivityForResult(Activity.java:4228)
                                                                                     at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
                                                                                     at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:67)
                                                                                     at android.app.Activity.startActivityForResult(Activity.java:4187)
                                                                                     at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:720)
                                                                                     at android.app.Activity.startActivity(Activity.java:4515)
                                                                                     at android.app.Activity.startActivity(Activity.java:4483)
                                                                                     at com.example.android.trollsounds.MainActivity$1.onClick(MainActivity.java:29)
                                                                                     at android.view.View.performClick(View.java:5612)
                                                                                     at android.view.View$PerformClick.run(View.java:22288)
                                                                                     at android.os.Handler.handleCallback(Handler.java:751)
                                                                                     at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                                     at android.os.Looper.loop(Looper.java:154)
                                                                                     at android.app.ActivityThread.main(ActivityThread.java:6123)
                                                                                     at java.lang.reflect.Method.invoke(Native Method)
                                                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
                                                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
  </code></pre>