title: onActivityResult DialogFragment doesn't work
body: <p>I'm having a problem by executing fileupload in android through fragmentDialog.Befire to test the button I made activity etc to test it, evrything works fine, but since i put it under dilogfragment nothing works:</p>
  
  <pre><code>public class UploadF extends DialogFragment{
  
      ....
  
  @Override
  public Dialog onCreateDialog(Bundle savedInstanceState) {
  
  
      gallery_button.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              Intent gal = new Intent();
              gal.setType("image/*");
              gal.setAction(Intent.ACTION_GET_CONTENT);
              startActivityForResult(Intent.createChooser(gal, "Select Picture"), SELECT_IMAGE);
  
          }
  
      });
  
  
  
  
      public void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult( requestCode,  resultCode,  data);
          if (resultCode == Activity.RESULT_OK) {
              if (requestCode == SELECT_IMAGE) {
                  ....
  
                  if ( selectedImagePath != null ) {
                      UploadFileI task = new UploadFileI( getActivity());
                      task.execute( url );
                  }
              }
  
  
  
          }
  
      }
  
  
  
  }
  </code></pre>