title: Requesting more Environment directories in one intent
body: <p>I want to request access for more directories:</p>
  
  <ul>
  <li>Environment.DIRECTORY_RINGTONES</li>
  <li>Environment.DIRECTORY_ALARMS</li>
  <li>Environment.DIRECTORY_NOTIFICATIONS</li>
  </ul>
  
  <p>I am following <a href="https://developer.android.com/training/articles/scoped-directory-access" rel="nofollow noreferrer">scoped directory access guidelines</a>. I have following code:</p>
  
  <pre><code>StorageManager sm = (StorageManager)getSystemService(Context.STORAGE_SERVICE);
  StorageVolume volume = sm.getPrimaryStorageVolume();
  Intent intent = volume.createAccessIntent(Environment.DIRECTORY_RINGTONES);
  startActivityForResult(intent, MY_CODE);
  </code></pre>
  
  <p>This works well for <code>Environment.DIRECTORY_RINGTONES</code>, however I need to as for the three mentioned before. As it would not result in good user experience, it is not a good idea to ask for all three subsequently (it would lead to three dialogs). In <a href="https://developer.android.com/reference/android/os/Environment#DIRECTORY_RINGTONES" rel="nofollow noreferrer">Environment documentation</a>, android says this: </p>
  
  <blockquote>
    <p>This may be combined with DIRECTORY_MUSIC, DIRECTORY_PODCASTS, DIRECTORY_NOTIFICATIONS, and DIRECTORY_ALARMS as a series of directories to categories a particular audio file as more than one type.</p>
  </blockquote>
  
  <p>Unfortunately, I did not find a way how to request them all in one <code>intent</code>. Thank you for your help.</p>