Activity result not being remembered?
<p>I have the following scenario (note that activity <strong>A</strong> has <code>launchMode="singleTop"</code>):</p>

<ol>
<li>Activity <strong>A</strong> calls <code>startActivityForResult()</code> on activity <strong>B</strong>;</li>
<li>Activity <strong>B</strong> calls <code>startActivity()</code> on <strong>C</strong>, after which <code>setResult(RESULT_OK)</code> and <code>finish()</code>; at this point, <code>onActivityResult()</code> in <strong>A</strong> is <strong>NOT</strong> called.</li>
<li>Activity <strong>C</strong> calls <code>startActivity()</code> on <strong>A</strong> using <code>FLAG_ACTIVITY_CLEAR_TOP</code> and <code>finish()</code>;</li>
</ol>

<p>This is where my problem occurs. At this point, <strong>A</strong>'s <code>onActivityResult()</code> is called with the right <code>requestCode</code>, but something else than <code>RESULT_OK</code> as the <code>resultCode</code>. I was expecting it to receive <code>RESULT_OK</code> because I have set it in <strong>B</strong> (which was started for result).</p>

<p>Why am I getting something other than <code>RESULT_OK</code>?</p>
