title: How to Give Multiple permissions at once in Runtime android M at my code
body: <p>I want to grant multiple permissions at once..... This is my code.. this is just sample I want to Give Multiple permissions at once..</p>
  
  <pre><code>public class MainActivity extends Activity {
  
  public static final int R_PERM = 123;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.data);
      setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
  
      if ((CheckPermission(this, Manifest.permission.CAMERA))&amp;&amp;
           (CheckPermission(this, Manifest.permission.READ_PHONE_STATE))&amp;&amp;
           (CheckPermission(this, Manifest.permission.NFC)))
      {
          PermHandling();
      }
  
      else {
          RequestPermission(MainActivity.this, Manifest.permission.CAMERA, R_PERM);
          RequestPermission(MainActivity.this, Manifest.permission.READ_PHONE_STATE, R_PERM );
          RequestPermission(MainActivity.this, Manifest.permission.NFC, R_PERM );
  
          //NewPermHandling();
      }
  
  }
  private void PermHandling() {
      //My app internal parts....
      //Here my stuff works...
  }
  
  //private void NewPermHandling(){
  
  //}
  
  @Override
  public void onRequestPermissionsResult(int permsRequestCode, String[] permissions, int[] grantResults) {
  
      switch (permsRequestCode) {
  
          case R_PERM: {
              if (grantResults.length &gt; 0
                      &amp;&amp; grantResults[0] == PackageManager.PERMISSION_GRANTED) {
                  PermHandling();
              } else {
                  //Toast.makeText(this, "Please Grant Permissions other wise app will close.!", Toast.LENGTH_SHORT).show();
              }
              return;
          }
      }
  }
  
  public void RequestPermission(Activity thisActivity, String Permission, int Code) {
      if (ContextCompat.checkSelfPermission(thisActivity,
              Permission)
              != PackageManager.PERMISSION_GRANTED) {
          if (ActivityCompat.shouldShowRequestPermissionRationale(thisActivity,
                  Permission)) {
          } else {
              ActivityCompat.requestPermissions(thisActivity,
                      new String[]{Permission},
                      Code);
          }
      }
  }
  
  public boolean CheckPermission(Context context, String Permission) {
      if (ContextCompat.checkSelfPermission(context,
              Permission) == PackageManager.PERMISSION_GRANTED) {
          return true;
      } else {
          return false;
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Here I have Given permissions one by one So I am getting Permissions one by one at Run time Please suggest me to Give all permissions at once..</p>
  
  <p>Please suggest me on my code where should I need to change.. </p>
  
  <p>here I my App I have more permissions I need to give at once like camera,location,storage etc... Please suggest me on Mycode.... </p>
  
  <p><strong>Update</strong>
  and all permissions should be at once  with <strong><em>Never Ask again</em></strong> check button....</p>
  
  <p>Please suggest me of this kind in my code,,,,</p>