title: Android does not show permission dialog for RECORD_AUDIO in android 6.0
body: <p>Android does not show permission dialog for RECORD_AUDIO</p>
  
  <p>I have added the required permission in android manifest </p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
  &lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /&gt;
  </code></pre>
  
  <p>and following code </p>
  
  <pre><code>private boolean checkPermission() {
          int result = ContextCompat.checkSelfPermission(this, android.Manifest.permission.RECORD_AUDIO);
          if (result == PackageManager.PERMISSION_GRANTED) {
              return true;
          } else {
              return false;
          }
      }
  
  private void requestPermission() {
  
          if (ActivityCompat.shouldShowRequestPermissionRationale(this, android.Manifest.permission.RECORD_AUDIO)) {
   Toast.makeText(this, "RECORD AUDIO Permission is required.",
                      Toast.LENGTH_LONG).show();
  
          } else {
  
              ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.RECORD_AUDIO},
                      PERMISSION_REQUEST_CODE);
  
          }
      }
  </code></pre>
  
  <p>and to check it </p>
  
  <pre><code>if (!checkPermission()) {
                  requestPermission();
              }
  </code></pre>
  
  <p>however the dialog to ask permission or the screen asking for permission is not shown ,</p>
  
  <p>I am testing on android 6.0 on an emulator</p>