title: onActivityResult method is not being called
body: <p>I'm having a problem in my android application. I don't know why 'onActivityResult' method is not being called when 'Up navigation' button from action bar is pressed. I think I've done everything properly:</p>
  
  <p><li> Parent activity launch child activity with 'startActivityForResult' method.</p>
  
  <pre><code>Intent intent = new Intent(ParentActivity.this, ChildActivity.class);
  startActivityForResult(intent, 1000);
  </code></pre>
  
  <p><li> Parent activity has overridden 'onActivityResult' method.</p>
  
  <blockquote>
  <pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data)
  {
     super.onActivityResult(requestCode, resultCode, data);   
     if (data != null &amp;&amp; requestCode == 1000)
     {
          Bundle extras = data.getExtras();
          Boolean rc = extras.getBoolean(MyConstants.INTENT_EXTRA_RESULT);
          if (rc)
          {
              .......
          }
      }
  }
  </code></pre>
  </blockquote>
  
  <p><li> Child activity has overridden 'onOptionsItemSelected' and calls 'NavUtils.navigateUpFromSameTask'.</p>
  
  <blockquote>
  <pre><code>public boolean onOptionsItemSelected(MenuItem item)
    {
      if (item.getItemId() == android.R.id.home)
      {
          Intent result = new Intent((String)null);
          result.putExtra(MyConstants.INTENT_EXTRA_RESULT, true);
          setResult(RESULT_OK, result);
          NavUtils.navigateUpFromSameTask(this);          
          return true;
      }           
      else
      {
          return super.onOptionsItemSelected(item);
      }
  }
  </code></pre>
  </blockquote>
  
  <p><li> Child activity has overriden 'finish' method. This method set a result.</p>
  
  <pre><code>public void finish() 
  {
     Intent result = new Intent((String)null);
     result.putExtra(Constantes.INTENT_EXTRA_HAY_QUE_RECALCULAR, hayQueRecalcular);               
     setResult(RESULT_OK, result);
  
     super.finish();
  }   
  </code></pre>
  
  <p>I'm not sure why 'onActivityResult' method is not being called.</p>
  
  <p>What I've observed is that child activity is not being finished ('finish' method is not being called) when 'Up navigation' button from action bar is pressed. However it is called when back button (hardware button) is pressed.</p>
  
  <p>What I'm doing wrong?</p>
  
  <p>Thanks</p>