This project is an example of how to handle multiple permissions at runtime, informing the user through a Dialog Alert the need for permission.
In addition to the above, if the user clicks "don't ask again" it is still possible to handle the permission.
git clone git@github.com:MurilloComino/android-runtime-request-permissions.git
in File > New > Project from Version Control... > git
in URL put: https://github.com/MurilloComino/android-runtime-request-permissions.git
and then clone
- Connect via usb your android phone.
- After cloning the project, open the terminal and navigate to the root folder.
gradlew installDebug
./gradlew installDebug
- Android Studio 3.5 - The IDE used - API > 22