title: Proper Way of Requesting WRITE_EXTERNAL_STORAGE Permission
body: <p>I have struggled trying to figure out how the storage system work on Android. Now I am stuck at requesting permission for WRITE_EXTERNAL_STORAGE, and I am using Android 7.1.1. Here is my code:</p>
  
  <pre><code>int check = ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);
          if (check == PackageManager.PERMISSION_GRANTED) {
              //Do something
          } else {
              requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},1024);
          }
  </code></pre>
  
  <p>UPDATE: So the code does work, it didn't work before because I had a typo in AndroidManifest.xml, thank you for all of your help!</p>