title: Android: onRequestPermissionsResult runtime multiple
body: <p>I want get 5 permission from user</p>
  
  <p>My code:</p>
  
  <pre><code>public void requestPerm() {
      if (android.os.Build.VERSION.SDK_INT &gt;= android.os.Build.VERSION_CODES.M) {
          if (checkSelfPermission(android.Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {
              String[] permissions = {android.Manifest.permission.CAMERA};
              ActivityCompat.requestPermissions(this,permissions, 1);
          }
          if (checkSelfPermission(android.Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {
              String[] permissions = {android.Manifest.permission.READ_PHONE_STATE};
              ActivityCompat.requestPermissions(this,permissions, 1);
          }
          if (checkSelfPermission(android.Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED) {
              String[] permissions = {android.Manifest.permission.RECORD_AUDIO};
              ActivityCompat.requestPermissions(this,permissions, 1);
          }
          if (checkSelfPermission(android.Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
              String[] permissions = {android.Manifest.permission.READ_EXTERNAL_STORAGE};
              ActivityCompat.requestPermissions(this,permissions, 1);
          }
          if (checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
              String[] permissions = {android.Manifest.permission.WRITE_EXTERNAL_STORAGE};
              ActivityCompat.requestPermissions(this,permissions, 1);
          }
      }
  }
  
  @Override
  public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
      switch (requestCode) {
          case 1: {
              if (grantResults.length &gt; 0 &amp;&amp; grantResults[0] == PackageManager.PERMISSION_GRANTED) {
                  Log.i("errorCheck","YES");
                  startRequest();
              } else {
                  Log.i("errorCheck","NO");
              }
          }
      }
  }
  </code></pre>
  
  <p>And use <code>requestPerm()</code> in <code>MainActivity</code>.java with <code>onClickListener</code></p>
  
  <p>After click user for get <code>requestPerm()</code>, before user click ALLOW or DENY, i get log twice "NO"</p>
  
  <p>I want return result only on click user ALLOW or DENY</p>
  
  <p>But now, on lunch <code>requestPerm()</code> return result "NO"</p>