I found that handling authorizations from android M and up is missing something. Or at the very least google had other ideas about this then i have. In my reasoning for authorizations there are 4 options:
1 app has permission
2 app does not have permission
2a never asked the user
2b user has denied
2c user has denied + checked "do not ask again"-box.
Checking between 1 and 2 is easy. But then is starts because there is just 1 method available to check between 2a, 2b and 2c. So....how as this method returns a Boolean? With the method you can check for a 2b scenario but you do not know (in case of result = true) if it is a 2a or 2c.
What is an option is that google expects us to keep asking the user over and over even is the user checked the "do not ask again"-box. That seems ok is you need the rights for core options of your app. In my case however the rights are needed for an extra.
The only option i found so far is saving data in the app data so i can check for the 4 different states. Does anybody have a smarter idea.
Thanks to Michael i found where i went wrong. My error wat in the fact that Android (Google) does not show the requestPermission dialog when the user has checked the "do not ask again"-box even when you program it. My next error was then how do i get an "false" back knowing that there is no permission but android does execute the onRequestPermissionsResult method even if the dialog has not been shown.
Again: Thanks Michael