title: android open gallery via intent ACTION_PICK vs ACTION_GET_CONTENT
body: <p>in my app i would like to have the user choose an image from the gallery and retrieve the result (thumbnail + full image uri). i would also like the user to be able to choose which gallery app to open (i.e. default gallery app or some other gallery app).</p>
  
  <p>initially, according to this <a href="https://developer.android.com/guide/components/intents-common.html" rel="nofollow noreferrer">guide</a> by google i copied and pasted this code:</p>
  
  <pre><code>public void selectImage() {
      Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
      intent.setType("image/*");
      if (intent.resolveActivity(getPackageManager()) != null) {
          startActivityForResult(intent, REQUEST_IMAGE_GET);
      }
  }
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      if (requestCode == REQUEST_IMAGE_GET &amp;&amp; resultCode == RESULT_OK) {
          Bitmap thumbnail = data.getParcelable("data");
          Uri fullPhotoUri = data.getData();
          // Do work with photo saved at fullPhotoUri
          ...
      }
  }
  </code></pre>
  
  <p>while it does get me the thumbnail and the full Uri in <code>onActivityResult(...)</code>, the problem is that it does not open a chooser for the user to select which gallery app to use and instead it opens this thing (see images below), which i assume is a default "image-chooser" thing where you could select another app via a menu.</p>
  
  <p><a href="https://i.stack.imgur.com/ALasR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ALasR.jpg" alt="enter image description here"></a><a href="https://i.stack.imgur.com/aCIpX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aCIpX.png" alt="enter image description here"></a></p>
  
  <p>i feel it's silly that the user would have to open this default "image chooser" first and once they are already in an "image chooser", select the gallery app that they actually want to use (sure, the user could just choose the image from this thing, but i want to give them a convenient choice).</p>
  
  <p>so i changed my code to this and it does indeed display a proper chooser for the user and he can go straight to hes favorite gallery app:</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_PICK,
                                     MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
          intent.setType("image/*");
  
          if (intent.resolveActivity(getActivity().getPackageManager()) != null)
          {
              startActivityForResult(intent, Utils.REQUEST_CODE_OPEN_GALLERY);
          }
  </code></pre>
  
  <p>however now i have a new problem: in <code>onActivityResult(...)</code> the line <code>data.getParcelable("data");</code> returns null. in other words, i don't get back a thumbnail.</p>
  
  <p>i also tried </p>
  
  <pre><code>Bundle extras = data.getExtras();
                  Bitmap thumbnail = (Bitmap) extras.get("data");
  </code></pre>
  
  <p>but "extras" is null.</p>
  
  <p>is it possible to have a proper "app chooser" <strong>AND</strong> get back a thumbnail?</p>