title: Activity java not found
body: <p>I am building my own cordova plugin for android. However, when I am calling an activity implementation in cordova plugin from my cordova app, it appears that my activity java file is not detected by my cordova app.</p>
  
  <p>While the logcat stated,</p>
  
  <blockquote>
    <p>android.content.ActivityNotFoundException: Unable to find explicit activity class {my.app.path/my.plugin.path.SampleActivity}; have you declared this activity in your AndroidManifest.xml?</p>
  </blockquote>
  
  <p>Oddly, the path of my plugin is concatenated to the path of my app. I am pretty sure that I've declared my activity in AndroidManifest.xml within my cordova plugin. </p>
  
  <p>Snippet (AndroidManifest.xml)</p>
  
  <pre><code>&lt;activity android:name="my.plugin.path.SampleActivity"
          android:screenOrientation="portrait"&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;
  </code></pre>
  
  <p>Snippet (plugin.xml)</p>
  
  <pre><code>&lt;config-file target="AndroidManifest.xml" parent="app/src/main/application"&gt;
      &lt;activity android:name="my.plugin.path.SampleActivity" 
          android:screenOrientation="portrait" 
          android:configChanges="orientation"&gt;
      &lt;/activity&gt;
  &lt;/config-file&gt;
  </code></pre>
  
  <p>Snippet (PluginInterface.java)</p>
  
  <pre><code>@Override
  public boolean execute(String action, CordovaArgs args, CallbackContext mCallbackContext) throws JSONException {
  
      this.mCallbackContext = mCallbackContext;
  
      Context context = cordova.getActivity().getApplicationContext();
      Intent intent = new Intent(context, SampleActivity.class);
  
      return true;
  }
  </code></pre>
  
  <p>Appreciate if anyone can help. Thank you. </p>