title: Open Gallery in a Specific Directory
body: <p>I'm trying to open all the photos taken with my app using the native Gallery.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>Intent intentBrowseFiles = new Intent(Intent.ACTION_VIEW);
  intentBrowseFiles.setType("image/*");
                      Uri uri = Uri.parse(Environment.getExternalStorageDirectory() + "/DCIM/MyApp");
                      intentBrowseFiles.setData(uri); 
                      intentBrowseFiles.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                      startActivity(intentBrowseFiles);
  </code></pre>
  
  <p>If I don't set the <code>setData</code> the gallery opens, but in the root, if I set, my app crashes.</p>
  
  <p>Is there a way to open it in the Gallery in a specific directory?</p>
  
  <p>Anyway, thank you!</p>