Android Question check runtime permission - how to determine if the user checked “Never ask again“


If the user checks Never ask again 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 Never ask again? the Activity_PermissionResult doesn't give me that information.
see this post in stackoverflow