[Solved] why we use this code please can any one tell me


https://developer.android.com/training/permissions/requesting.html

Beginning in Android 6.0 (API level 23), 
users grant permissions to apps while the app is running,
not when they install the app.
This approach streamlines the app install process,
since the user does not need to grant permissions when they install or update the app.
It also gives the user more control over the app's functionality; 
for example, a user could choose to give a camera app access to the camera but not to the device location.
The user can revoke the permissions at any time, by going to the app's Settings screen.

Basic overview of what you need. Go through the link to get more details about implementation and other restrictions.

1

solved why we use this code please can any one tell me