Code to launch external app explicitly
<p>From one of my apps, I'm trying to launch another. I want to use an explicit intent.</p>

<pre><code>ComponentName cn = new ComponentName("com.myOtherApp", "OtherAppActivity");
Intent intent = new Intent();
intent.setComponent(cn);
context.startActivity(intent);
</code></pre>

<p>When I run that code, however, it asks if I've declared that activity in my manifest. However, when I put the following into the manifest, I get the same error:</p>

<pre><code>&lt;activity android:name="com.myOtherApp.OtherAppActivity"&gt;
&lt;/activity&gt;
</code></pre>

<p>What am I doing wrong?</p>

<p>Thanks</p>
