title: How to find out what intent callback reference to what
body: <p>this may sounds stupid but I can't wrap my head around it.</p>
  
  <p>I have a custom ListAdapter that populates the rows with images, text and other stuff thats all structured by my models. Now I want that when you click on a (any) image in that list, the camera shall open and the user should be able to take a picture and then the image that was clicked should display the pic that was taken with the cam. Get it?</p>
  
  <p>Now in the adapter I just do something like that:</p>
  
  <pre><code>public View getView(int position, View convertView, ViewGroup parent) {
      ...stuff...
      ImageView image = (ImageView) elementView.findViewById(R.id.element_image);
      image.setOnClickListener(new OnClickListener() {
          @Override
          public void onClick(View v) {
              Intent takePicture = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
              ((Activity) context).startActivityForResult(takePicture, 0);
          }
      ...other stuff...
  });
  </code></pre>
  
  <p>I add for each ImageView a onClick Option that can open the camera and let the user take a picture.
  The problem is that the context (my MainActivity) gets a callback on the method 'onActivityResult', but how do I know which callback belongs to which ImageView?</p>
  
  <pre><code> protected void onActivityResult(int requestCode, int resultCode, Intent imageReturnedIntent)
  </code></pre>
  
  <p>Is it possible to send a reference within the intent? <strong>Or how should it know which intent-call belongs to which ImageView?</strong></p>
  
  <p>I hope you understand my question. Otherwise just ask. Thank you in advance ;)</p>