title: Multiple Permission at once not working in android
body: <p>I am trying to get 2 permissions at once but Iam unable to do so.</p>
  
  <pre><code>if (android.os.Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {
  
      if (ContextCompat.checkSelfPermission(context, Manifest.permission.READ_CONTACTS)
                  != PackageManager.PERMISSION_GRANTED) {
  
          ActivityCompat.requestPermissions(context, Array&lt;String&gt;(2) { 
              Manifest.permission.READ_CONTACTS; 
              Manifest.permission.WRITE_EXTERNAL_STORAGE},
          1);
      }
  }
  </code></pre>
  
  <p>It only asks for <code>WRITE_EXTERNAL_STORAGE</code> permission and not <code>READ_CONTACTS</code>. Actually, If I write <code>WRITE_EXTERNAL_STORAGE</code> one first and <code>READ_CONTACTS</code> after that then it will only ask for contact and not <code>WRITE_EXTERNAL_STORAGE</code>.</p>