android - Failing with multiply instances -


I'm trying to launch an intent filter with one process so that another action can be turned on.

It is very easy:

  protected zero startIntent () {intent i = new intent (target); I.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK); I.addFlags (Intent.FLAG_ACTIVITY_CLEAR_TOP); Context.startActivity (i); }  

Now as my subject, I am ready to run the target activity in the form of Multiplication Example .

Every instance of that activity should do some operations and then in finish ();

So now I startIntent (); Call 4 times in a row.

I want to parallel 4 examples in the stack of the same goal activity (each action will end after the work is finished.);)

The problem is that it works properly does not do. I tried some loadstest, and when I call method 3 (or below) in the line it works fine, but when I call startIntent () 4+ times, some instances of that activity can be anytime Launch is not done (for example, in the second intention, the order that has been said).

This is some warning that I get:

WARNING / ACTIVITY MANAGER (9 66): Duplicate Finnish Request for History {4367ed60 {com.test.target. TargetActivity / com.idan.external .callingActivity}}

BTW: In the target activity, I have set the cloud in the flag:

  android: launchMode = "Standard" (also tried without it, and it did not work).  

Any ideas?


Comments