Dexter is a github third party library which simplifies the process of requesting runtime permissions.
Dexter have predefined classes which can work with very few lines of coding. You can ask for single as well as multiple permissions using dexter with only one method.
You need to add the following line your build.gradle(Module: app) file. implementation 'com.karumi:dexter:5.0.0'
- fork this repo and see the code
Raushan Jha