Starting activity from another application using only package name
<p>I want to start another application's <code>Activity</code> from my <code>Activity</code>, but all info, that I have is only the name of that application's package. I do following:</p>

<pre><code>Intent intent = new Intent();
intent.setPackage(anotherApplicationPackageName);
intent.setAction(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
startActivity(intent);
</code></pre>

<p>As I understand correctly, using this API, Android will look for an <code>Activity</code>, which can handle this <code>Intent</code> inside the given package, but I always get <code>ActivityNotFoundException</code>.</p>

<p>The question is What am I doing wrong?</p>
