title: Request permission for microphone on Android M
body: <p>I need to utilize the microphone with Android M. I've tried setting up a permission group in the manifest, and can't get it working properly. Here's what I've got in the manifest:</p>
  
  <pre><code>&lt;permission-group android:name="android.permission-group.MICROPHONE"
      android:label="label"
      android:icon="@mipmap/day_icon"
      android:priority="360"/&gt;
  
  &lt;permission android:name="android.permission.MICROPHONE"
      android:permissionGroup="android.permission-group.MICROPHONE"
      android:protectionLevel="dangerous"
      android:label="label" /&gt;
  </code></pre>
  
  <p>I've also tried getting the access through code:</p>
  
  <pre><code>if (ContextCompat.checkSelfPermission(getActivity(),
              Manifest.permission_group.MICROPHONE)
              != PackageManager.PERMISSION_GRANTED) {
  
          ActivityCompat.requestPermissions(getActivity(),
                  new String[]{Manifest.permission_group.MICROPHONE},
                  REQUEST_MICROPHONE);
  
      }
  </code></pre>
  
  <p>The alert doesn't show to grant access.</p>
  
  <p>I still don't have access to microphone. Anyone know how get permission for the microphone?</p>
  
  <p><strong>Note</strong>: This is only not working for Android M</p>