setResult does not work when BACK button pressed
<p>I am trying to setResult after the BACK button was pressed. I call in onDestroy</p>

<pre><code>Intent data = new Intent();
setResult(RESULT_OK, data) 
</code></pre>

<p>But when it comes to</p>

<pre><code>onActivityResult(int requestCode, int resultCode, Intent data) 
</code></pre>

<p>the resultCode is 0 (RESULT_CANCELED) and data is 'null'.</p>

<p>So, how can I pass result from activity terminated by BACK button?</p>
