title: Android - Launch Gallery Folder and Select Image
body: <p>I am doing an app which requires the use of the gallery viewer. I am using a button to launch the gallery activity. </p>
  
  <p>By using this code: </p>
  
  <pre><code>startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("content://media/external/images/media"))); 
  </code></pre>
  
  <p>It returns me all the images in the gallery from different photo albums, where I would only want to display the default camera album (is this possible?), and when I click on the image to view it, it is fine until I click on the back button, the back button goes straight back to my app and does not stay in the gallery. I would like the back button to go back to the gallery (so that the user can view other images too), is that possible? </p>
  
  <p>Any help would be appreciated and thank you for your time and contribution :)</p>
  
  <p>So far, this is what I have gotten</p>
  
  <pre><code>Intent intent = new Intent();
  intent.setAction(Intent.ACTION_PICK);
  intent.setDataAndType(Uri.parse("content://media/external/images/media"), "image/*");
          startActivityForResult(intent, 0); 
  </code></pre>
  
  <p>But whenever I load click to load the image, it directs me back to my app straightaway without loading the image. Can someone help me with this? Thanks!</p>