title: onActivityResult() not called after startActivityForResult() with Intent.ACTION_GET_CONTENT
body: <p>I got my main <code>Activity</code> which holds different <code>Fragment</code>'s, one fragment gives the user a possibility to open a <code>DialogFragment</code>. That dialog opens a list of sound files and the dialog also contains a 'Add' button from which the user should be able to add her own soundfile. To do this I thought to use the standard Android file picking functionality and make use of the <code>Intent.ACTION_GET_CONTENT</code>. So I fire away this intent when the user presses the 'Add' button and the Android file picking functionality comes up as it should, but when I choose a file, nothing happens what so ever. I would expect the <code>onActivityResult()</code>of my main activity to be triggered but it doesn't, and I can't get it to work and I don't understand why this doesn't work.</p>
  
  <pre><code>public class MyDialog extends DialogFragment {
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      // Rest omitted...
  }
  
  @Override
  public Dialog onCreateDialog(Bundle savedInstanceState) {
      return new AlertDialog.Builder(context)
              .setIcon(android.R.drawable.ic_dialog_info) 
              .setTitle(R.string.TONE_PROMPT_TITLE)       
  
              .setNeutralButton(R.string.ADD, new DialogInterface.OnClickListener() {
                  @Override
                  public void onClick(DialogInterface dialog, int which) {
                      Intent intent = new Intent();
                      intent.setAction(Intent.ACTION_GET_CONTENT);
                      intent.setType("audio/mpeg");
                      getActivity().startActivityForResult(intent, ADD_SOUND_REQUEST_CODE);
                  }
              })
  
              .create();
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I have also tried to instantiate the intent the following way:
  <code>Intent intent = new Intent(getActivity(), MyActivity.class);</code>
  but this doesn't work either.</p>
  
  <p>Any ideas would be really helpful, thanks!</p>