I am currently working on an application that requires several "dangerous" permissions. So I tried adding "ask for permission" as required in Android Marshmallow(API Level 23), but couldn't find how to do it.
How can I ask for permission using new permission model in my app?
Best Answer
Open a Dialog using the code below:
Get the Activity result as below:
More info: https://developer.android.com/training/permissions/requesting.html