Download the sample code from here 

Android Multiple permissions sample – to ask user multiple permissions one after another and also to handle permanent permission denial mode.

 

mulitplePPP

 

About Runtime Permissions:

Runtime Permissions is a new permission model introduced in Android Marshmallow 6.0. Users are able to grant permissions during the app’s runtime, rather than during app install. Let’s look at leveraging the new runtime permissions for Android Marshmallow.

The Runtime Permission Model

As always, lets first see what good it does. The new permission model allows users to take control of permissions and decide what to grant when. This can be controlled from the App Info > App permissions section.

runtime-permissions-list