Letting a third party app start my activity directly?
<p>I'm working on an activity which other 3rd parties want to use in their own apps, via intents.</p>

<p>Right now this activity is catching urls via an intent filter, like this:</p>

<pre><code>&lt;activity android:name=".MyActivity"&gt;
  &lt;intent-filter&gt; 
    &lt;action android:name="android.intent.action.VIEW"&gt;&lt;/action&gt;
    &lt;category android:name="android.intent.category.DEFAULT"&gt;&lt;/category&gt;
    &lt;category android:name="android.intent.category.BROWSABLE"&gt;&lt;/category&gt;
    &lt;data android:host="www.mysite.com" android:pathPrefix="/test/" android:scheme="http"&gt;&lt;/data&gt;
  &lt;/intent-filter&gt;
&lt;/activity&gt;
</code></pre>

<p>The above works, whenever a user clicks a link in my app like:</p>

<p>"mysite.com/test/blah.html"</p>

<p>my app comes up as a choice, along with the browser, to open the link.</p>

<p>Now if a third party wants to use my app, I think they can use the above like this:</p>

<pre><code>Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://mysite.com/test/somedata"));
startActivity(intent); 
</code></pre>

<p>While this would work, this probably won't give them the desired effect of jumping directly to my activity from theirs - the android chooser dialog will appear, asking if they want to open the intent data with the browser, or my app.</p>

<p>How can I let 3rd parties call my activity directly without broadcasting the intent like this? I'd like to make them still pass the same exact data scheme to me, but just let them open my activity directly.</p>

<p>Thank you</p>
