In this AndroidVideo Tutorial we will learn about Runtime Permission in Android with Example
Android M has introduced a new concept of permissions model with its release.
Each Android application is started in its own process thus are isolated from all other applications.
Before API 23, the permission model was simpler to the developer but offered less control and security to the user
With Android 6.0 Marshmallow (API 23),
According to this model users need to check the permission at run time.
User can allow or deny any specific dangerous permission at run time.
Note: For further reference you can download the ServiceDemoAndroid.zip file attached with this tutorial.
If you have any queries feel free to Post in Comments.