title: Returning data back to 1st Activity when setResult is called from 3rd Activity
body: <p>I have 3 Activities. When in the 1st Activity, the onClick method is called with startActivityForResult inside it that takes you to Activity 2. Then from Activity 2, you can click another button that takes you to Activity 3. </p>
  
  <p>In Activity 3, I would like to call the setResult method, and after that, it will finish the Activity and take you back to Activity one with the data from Activity 3.</p>
  
  <p>But, for some reason, the data is null and Activity.RESULT_OK is never called.</p>
  
  <p>How can I handle this? thanks.</p>
  
  <p>In Activity one:</p>
  
  <pre><code>    @Override
  public void onClick(View view) {
  
      IVID = view.getId();
  
      Intent i = new Intent(this, PhotoSelectActivityMultiple.class);
      startActivityForResult(i, 1);
  
  
  }
  </code></pre>
  
  <p>In Activity 2:</p>
  
  <pre><code>     Intent returnIntent = new Intent(getApplicationContext(), CollageGrid.class);
                  returnIntent.putStringArrayListExtra("imageurls", mDownloadURL);
                  startActivity(returnIntent);
                  overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
  </code></pre>
  
  <p>In Activity 3:</p>
  
  <pre><code>            Intent intent=new Intent();
              intent.putExtra("part",byteArray);
              setResult(1, intent);
              finish();
  </code></pre>
  
  <p>In onActivity </p>
  
  <pre><code>  @Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
  
      if (requestCode == 1) {
          if(resultCode == Activity.RESULT_OK) {
              updateThis = (ImageView) findViewById(IVID);
  
              byte[] byteArray = data.getByteArrayExtra("part");
              Bitmap current_bmp = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length);
              updateThis.setImageBitmap(current_bmp);
          }
          if (resultCode == Activity.RESULT_CANCELED) {
  
          }
      }
  
  }
  </code></pre>