title: Android M - check runtime permission - how to determine if the user checked "Never ask again"?
body: <p>According to this: <a href="http://developer.android.com/preview/features/runtime-permissions.html#coding" rel="noreferrer">http://developer.android.com/preview/features/runtime-permissions.html#coding</a> an app can check for runtime permissions and request permissions if it hasn't been granted already. The following dialog will be displayed then:</p>
  
  <p><img src="https://i.stack.imgur.com/JiZCa.png" alt="enter image description here"></p>
  
  <p>In case the user declines an important permission, imo an app should display an explanation why the permission is needed and what impact declining has. That dialog has two options:</p>
  
  <ol>
  <li>re-try again (permission is requested again)</li>
  <li>deny (app will work without that permission).</li>
  </ol>
  
  <p>If the user checks <code>Never ask again</code> however, the second dialog with the explanation shouldn't be shown, especially if the user already declined once before.
  Now the question is: how does my app know whether the user has checked the <code>Never ask again</code>? IMO the <code>onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults)</code> doesn't give me that information.</p>
  
  <p>A second question would be: does Google have plans to incorporate a custom message in the permission dialog that would explain why the app needs the permission? That way there would never be a second dialog which would certainly make for a better ux.</p>