title: onActivityResult() not called when Activity started from Fragment
body: <p>I have an issue with importing a picture from the Album in Android, because the <code>onActivityResult()</code> method is never called.</p>
  
  <p>This is the code that I wrote (called from a fragment not an activity):</p>
  
  <pre><code>Intent galleryIntent = new Intent(Intent.ACTION_PICK,  android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
  getActivity().startActivityForResult(galleryIntent, PICK_IMAGE);
  </code></pre>
  
  <p>And by the way, I have defined the <code>onActivityResult()</code> but it's never triggered:</p>
  
  <pre><code>@Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      Log.d(TAG, "onActivityResult"); // not printed
  }
  </code></pre>
  
  <p>Any idea what's wrong with this? </p>
  
  <p>Thanks!</p>