title: When I hit the up button on my app it skips from activity C to A?
body: <p>I have 3 activities and call them</p>
  
  <pre><code>    Main startActivityForResult(intent, 1) &gt;
      secondActivity startActivityForResult(intent, 2) &gt;
      thirdActivity
  </code></pre>
  
  <p>When I hit the up button from the third activity it skips to Main and calls onActivityResult of Main but not the one in SecondActivity.</p>
  
  <p>Example of code in Main: </p>
  
  <pre><code>    Intent intent = new Intent(view.getContext(), horses.class);
      intent.putExtra("races", races);
      startActivityForResult(intent, 1);
  </code></pre>
  
  <p>The result returned to Main:</p>
  
  <pre><code>    public void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
          if (requestCode == 1) {
              if (resultCode == RESULT_OK) {
                  races = (ArrayList&lt;event&gt;) data.getExtras().getSerializable("races_horses");
              }
          }
      }
  </code></pre>
  
  <p>Here is code in secondActivity:</p>
  
  <pre><code>    Intent intent = new Intent();
      intent.putExtra("races_horses", races);
      setResult(RESULT_OK, intent);
      finish();
  </code></pre>
  
  <p>Why is secondActivity skipped over and the onActivityResult in secondActivity not called?</p>