title: Wrong requestCode in onActivityResult
body: <p>I'm starting a new Activity from my Fragment with</p>
  
  <pre><code>startActivityForResult(intent, 1);
  </code></pre>
  
  <p>and want to handle the result in the Fragment's parent Activity:</p>
  
  <pre><code>@Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      Log.d(TAG, "onActivityResult, requestCode: " + requestCode + ", resultCode: " + resultCode);
      if (requestCode == 1) {
          // bla bla bla
      }
  }
  </code></pre>
  
  <p>The problem is that I never got the <code>requestCode</code> I've just posted to <code>startActivityForResult()</code>.</p>
  
  <p>I got something like <code>0x40001</code>, <code>0x20001</code> etc. with a random higher bit set. The docs don't say anything about this. Any ideas?</p>