Failing with multiply instances
<p>I`m trying to launch an Intent filter from one process to run an activity of another proccess.</p>

<p>This is pretty easy:</p>

<pre><code>    protected void startIntent()
    {
       Intent i = new Intent(target);
       i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
       i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
       context.startActivity(i);
     }
</code></pre>

<p>Now as my topic says, I am willing to run the target activity as <strong>multiply instances</strong>.</p>

<p>Each instance of that activity is supposed to do some operation and then it has <code>finish();</code></p>

<p>So now I call <code>startIntent();</code> 4 times in a row. </p>

<p>I want to have 4 instances parallel in the stack of the same target activity (each activity will finish after it does some operations. with finish(); ).</p>

<p>The problem is that it doesn't work properly. I tried some LoadTest, and when I call the method 3 (or below) times in a row it works fine, but when I call startIntent() 4+ times some instances of that activity never get launched(for example the second Intent in the order that has been called). </p>

<p>This is some warning I get:</p>

<blockquote>
  <p>WARN/ActivityManager(966): Duplicate finish request for HistoryRecord{4367ed60     {com.test.targetActivity/com.idan.external.callingActivity}}</p>
</blockquote>

<p>Btw: In the target activity I've setted in the manifest the flag: </p>

<pre><code>android:launchMode="standard" (also tried without it, and it didnt work).
</code></pre>

<p>Any idea?</p>
