title: How do you request MANAGE_EXTERNAL_STORAGE permission in Android?
body: <p>From Android Docs, <a href="https://developer.android.com/training/data-storage/manage-all-files#all-files-access" rel="noreferrer">https://developer.android.com/training/data-storage/manage-all-files#all-files-access</a></p>
  <p><em>&quot;An app can request All files access from the user by doing the following:</em></p>
  <p><em>Declare the <strong>MANAGE_EXTERNAL_STORAGE</strong> permission in the manifest.</em></p>
  <p><em>Use the <a href="https://developer.android.com/reference/android/provider/Settings#ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION" rel="noreferrer"><strong>ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION</strong></a>  intent action to direct users to a system settings page where they can enable the following option for your app: Allow access to manage all files.&quot;</em></p>
  <h2>What I've tried</h2>
  <p>The only way I know how to request permissions is with <code>ActivityCompat</code>. I've tried:</p>
  <p><code>ActivityCompat.requestPermissions(this, new String[]{Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION},1);</code></p>
  <p>and</p>
  <p><code>ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.MANAGE_EXTERNAL_STORAGE},1);</code></p>
  <p>Neither of which do anything.</p>
  <p>The Android docs are extensive but not exactly the most welcoming for newcomers. I understand intents, and know they can be used to switch between activities, but I don't know what an &quot;intent action&quot; is and how it can be used to request permissions</p>