Android onRequestPermissionsResult grantResults size > 1
<p>After requesting permission, the <a href="https://developer.android.com/reference/android/support/v4/app/ActivityCompat.OnRequestPermissionsResultCallback.html" rel="noreferrer">ActivityCompat.OnRequestPermissionsResultCallback</a> sometimes contains multiple grantResults, is it safe to just check the first one?</p>

<p>The <a href="https://developer.android.com/training/permissions/requesting.html" rel="noreferrer">training doc</a> check the param like this:</p>

<pre><code>    if (grantResults.length &gt; 0
      &amp;&amp; grantResults[0] == PackageManager.PERMISSION_GRANTED) {
      // permission was granted, yay! Do the
      // contacts-related task you need to do.
    } else {
      // permission denied, boo! Disable the
      // functionality that depends on this permission.
    }
</code></pre>

<p>but it's not clearly and no documents found.</p>