title: have you declared this activity in your AndroidManifest.xml?
body: <p>I want to use a third-party Android project in my project, so I exported the source of this third party project to a jar file and then imported the jar file to my project's Android Dependencies. I added  this code in my class:</p>
  
  <pre><code>ComponentName componentName = new ComponentName(
              "com.mobilevisualsearch",
              "com.mobilevisualsearch.ActivityImageDetail");
  
      String strImageSourcePath = "/storage/emulated/0/Camera/P40101-165253.jpg";
      Bundle bd = new Bundle();
      bd.putString("strPhotoFileFullName", strImageSourcePath);
  
      Intent it = new Intent();
      it.putExtras(bd);
      it.setComponent(componentName);
      startActivity(it);
  </code></pre>
  
  <p><code>com.mobilevisualsearch.ActivityImageDetail</code> is a class of the third-party project. My <code>AndroidManifest.xml</code> was added as</p>
  
  <pre><code>    &lt;activity
          android:name="com.mobilevisualsearch.ActivityImageDetail"
          android:configChanges="orientation"
          android:screenOrientation="portrait" &gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>This<code>&lt;activity&gt;</code> is under <code>&lt;application&gt;</code>. When I run my app I get an error.
  This is the Logcat log:</p>
  
  <pre><code>android.content.ActivityNotFoundException: Unable to find explicit activity class {com.mobilevisualsearch/com.mobilevisualsearch.ActivityImageDetail}; have you declared this activity in your AndroidManifest.xml?
  </code></pre>
  
  <p>How can I fix this problem?</p>