title: Android Request Permission Callback
body: <p>I'm trying to implement Android permissions from <a href="https://developers.google.com/android/guides/permissions" rel="nofollow noreferrer">https://developers.google.com/android/guides/permissions</a></p>
  
  <p>A couple of ques:
  1) The callback onRequestPermissionResult - where are the parameters String[] permissions and int[]grantResults from? 
  2) I keep getting null values for grantResults and String[] permissions
  3) I have set the value of the const REQUEST_LOCATION to 0 - does it matter what the value of this const is? </p>
  
  <pre><code>if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)
                  != PackageManager.PERMISSION_GRANTED) {
    // Check Permissions Now
    ActivityCompat.requestPermissions(this,
          new String[]{Manifest.permission.ACCESS_FINE_LOCATION},
          REQUEST_LOCATION);
  } else {
    // permission has been granted, continue as usual
    Location myLocation =
  LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);
  }
  </code></pre>
  
  <p>One unrelated ques...when getting a google map API key is it required to set the SHA-1 value or is that optional and just limits the key to android.</p>
  
  <p>Thanks.</p>
  
  <pre><code>public void onRequestPermissionsResult(int requestCode,
                                         String[] permissions,
                                         int[] grantResults) 
  </code></pre>