title: Android Lollipop know if app as Usage Stats access
body: <p>Since Android Lollipop, we have now an API for accessing apps usage stats. However, your app must be granted those permissions by the user.</p>
  
  <p>I know that for redirecting the user to those settings using Settings.ACTION_USAGE_ACCESS_SETTINGS.</p>
  
  <p>Now, my question is how do you know the user has granted you those permissions so that you can stop redirecting him to the settings.</p>
  
  <p>Thanks!</p>