title: onActivityResult is not called when the back button in ActionBar is clicked
body: <p>Here is my problem:</p>
  
  <ol>
  <li><p>Create a MainActivity. Add a button which will start another activity SecondActivity.</p>
  
  <pre><code>        Intent i = new Intent(getActivity(),SecondActivity.class);
          startActivityForResult(i,0);
  </code></pre></li>
  <li><p>Inside the SecondActivity, I capture the back button click event and also add a button to return to the first Activity.</p>
  
  <p>When back button in action bar is clicked:</p></li>
  </ol>
  
  <p>@Override</p>
  
  <pre><code>public boolean onOptionsItemSelected(MenuItem item) {
  
      switch (item.getItemId()) {
          case android.R.id.home:
              // back button
              Intent resultIntent = new Intent();
              // TODO Add extras or a data URI to this intent as appropriate.
              setResult(Activity.RESULT_OK, resultIntent);
              //finish();
              return false;
  
      }
      return super.onOptionsItemSelected(item);
  }
  </code></pre>
  
  <p>When the button inside activity is clicked:</p>
  
  <pre><code>Button btn = (Button)this.findViewById(R.id.button2);
  btn.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View view) {
          Intent resultIntent = new Intent();
          // TODO Add extras or a data URI to this intent as appropriate.
          setResult(Activity.RESULT_OK, resultIntent);
          finish();
      }
  });
  </code></pre>
  
  <p>The onActivityResult in MainActivity is called when I click the button inside the SecondActivity, but it's never been called if I click the back button in Actionbar of SecondActivity. Can anybody tell me why? Thanks</p>