title: marshmallow permissions dialog ALLOW button not working why?
body: <p>I have integrated marshmallow permissions dialog according to new material design, but permission dialog is working on emulator but not on real device. and also i am not getting any error. can any one please help me?</p>
  
  <p>I am using below code:-</p>
  
  <p>ActivityCompat.requestPermissions(this,
                          new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION},
                          MY_PERMISSIONS_REQUEST_LOCATION);</p>