title: Retrieving putExtra values from onActivityResult intent
body: <p>I am trying to append certain data to an intent, before using StartActivityForResult on it.</p>
  
  <p>When the intent returns in OnActivityForResult, I would like to access the data I appended in the intent.  So I can correlate the data retrieved in the intent, with things like database entries, container ids, etc.   </p>
  
  <p>Unfortunately the intent that returns does not seem to be the same one I started.  I tried comparing (==) the old and the new intent in a test case, and the result failed, and not surprisingly then the data I am trying append is not there.  Is there any link back to the original intent?</p>
  
  <p>Basic idea of what I've tried:</p>
  
  <p>Code to StartActivityForResult in psuedo code:</p>
  
  <pre><code>Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI)
  i.putExtra([-Key-], [int]);
  i.putExtra([-Key-], [int]);
  ....
  getParentFragment().startActivityForResult(i, requestCode); 
  </code></pre>
  
  <p>Pseudo Code for OnActivityResult </p>
  
  <pre><code>@Override
  public void onActivityResult(int requestCode, int resultCode, Intent intent) {
  
  ....        
  
      switch(requestcode){
  
      case RESULT_LOAD_IMAGE :
  
      //These always evaluate to default.  The intent returns with the picture,
      //and I process it fine (with default values), but any extra data i try to append 
      //to the intent is lost.  
  
      int rowId = intent.getIntExtra([-Key-], [-def_value-]);
  
              ....
              ....
  
      break;
      default:
          throw new RuntimeException();
      }
  }
  </code></pre>