EasyPermissions Library – Android Studio Tutorial
In this video we will learn, how to use the EasyPermissions library to request a dangerous permission at run time, which is necessary since Android Marshmallow (API level 23). This library provides an easy way to request multiple permissions at once, handle the results (granted or denied), show a rationale when the user previously denied a permission with an explanation of why this permission is needed and it even provides an easy way to create an AlertDialog that sends the user directly to the settings of the phone to manually grant a permission if he previously checked the « don’t ask again » box.
Library on GitHub with dependency + instructions:
https://github.com/googlesamples/easypermissions
Example code:
https://gist.github.com/codinginflow/adfa70d77ab0ac894832449600ddce57
____________________
💻 Find the BEST programming tutorials on TutHub:
https://tuthub.io
⭐ Get my MVVM Caching Course now:
https://codinginflow.com/caching
❗ Subscribe to the channel:
https://www.youtube.com/c/codinginflo…
📨 Subscribe to the Coding in Flow newsletter:
https://codinginflow.com/newsletter
❓ Join our free developer community:
https://discord.gg/TSnMvmc
📣 Follow Coding in Flow on other sites:
Facebook: https://www.facebook.com/codinginflow
Instagram: https://www.instagram.com/codinginflow
TikTok: https://www.tiktok.com/@codinginflow
Twitter: https://twitter.com/codinginflow
Github: https://github.com/codinginflow
💰 Business requests, sponsoring, etc.: info@codinginflow.com
Views :20644
android studio