finishFromChild and onActivityResult not firing when child starts activity of the same type as the parent
<p>I have an application, which (for the sake of simplicity) has two types of activities - Overview and DetailView. The Overview activity shows a list of steps and allows the user to start a DetailView activity corresponding to the step chosen.</p>

<p>In the DetailView activity, the user can start another Overview, which shows different steps than the ones in the parent of the current DetailView.</p>

<p>In the Overview, DetailView is started by using startActivityForResult (). In the DetailView, when the user decides to start a second Overview, I call setResult () and finish () and then start the new Overview. In this scenario, onActivityResult () and finishFromChild () do not fire. Instead, they fire when the parent finishes (!?).</p>

<p>I hope that this question isn't too stupid :)</p>

<p>Code from Overview:</p>

<pre><code>        Intent spIntent = new Intent ();
  spIntent.setClassName ("com.testing.testa", "com.testing.testa.Overview");

  spIntent.putExtra("id", itemId);
  spIntent.putExtra("local", isLocal);
  spIntent.putExtra("numberOfSteps", numberOfSteps);
  spIntent.putExtra("currentStep", swipeStepNumber);

  spIntent.putExtra("name", name);

  System.out.println ("swipeStepNum: " + this.swipeStepNumber);
  startActivityForResult (spIntent, 0);
</code></pre>

<p>...</p>

<pre><code>public void onActivityResult (int requestCode, int resultCode, Intent data) {
  super.onActivityResult(requestCode, resultCode, data);
  System.out.pritnln ("Child ended with resultCode: " + resultCode);     }
</code></pre>

<p>Code from DetailView:</p>

<pre><code>Intent spIntent = new Intent ();
spIntent.setClassName ("com.testing.testa", "com.testing.testa.Overview");
spIntent.putExtra("id", itemId);
spIntent.putExtra("name", sectionedAdapter.getItem(position).toString());
startActivity (spIntent);
Intent die = new Intent ();
die.putExtra ("die", true);
setResult (1, die);
finish ();
</code></pre>
