Android 6.0 Runtime Permission example (Real Example)
As you know that in API 23 (Marshmallows) new Runtime Permission is added to android development. This feature make App installation more faster than before, because on Android Marshmallows above device your app will not ask for Permission at installation time. Permissions will be granted dynamically to your app when you actually need it. That’s a cool Idea. But if you have existing App and you try to install that app on Android Marshmallows device then your app will install without Permissions as expected but if you try to access Camera, Storage then your app will crash saying “No Permissions etc. Exception”. Because you haven’t yet defined runtime Permissions in your app. So you need to modify your app to ask for Permissions when required.
But maybe you tried adding some codes to make runtime Permission work on your app but you still got crash, then here is simple tutorial to embed runtime Permission in your app.










