EasyPermissions is a wrapper library to simplify basic system permissions logic when targeting Android M or higher. If your app is written in Kotlin consider the easypermissions-ktx library which adds Kotlin extensions to the core EasyPermissions library. To begin using EasyPermissions, have your Activity (or Fragment) override the onRequestPermissionsResult method. If all of the permissions in a given request are granted, all methods annotated with the proper request code will be executed(be sure to have an unique request code). The annotated method needs to be void and without input parameters (instead, you can use onSaveInstanceState in order to keep the state of your suppressed parameters). This is to simplify the common flow of needing to run the requesting method after all of its permissions have been granted. Optionally, for a finer control, you can have your Activity / Fragment implement the PermissionCallbacks interface.

Features

  • Simplify basic system permissions logic when targeting Android M or higher
  • Implement the EasyPermissions.RationaleCallbacks if you want to interact with the rationale dialog
  • For a finer control, you can have your Activity / Fragment implement the PermissionCallbacks interface
  • Check if the app already has the required permissions
  • Request the system permissions and show the rationale string provided if necessary
  • Simplify the common flow of needing to run the requesting method after all of its permissions have been granted

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow EasyPermissions

EasyPermissions Web Site

Other Useful Business Software
Paessler: Easy to Use With Enterprise Power. Free Trial Icon
Paessler: Easy to Use With Enterprise Power. Free Trial

A low-code dashboard makes monitoring intuitive for any admin, while scripting and custom sensors give experts full control.

You shouldn't have to choose between a monitoring tool that's easy to use and one that's powerful enough for a complex environment. PRTG's low-code interface lets any admin build dashboards, set alerts and monitor devices without scripting, while custom sensors and full API access are there when your team needs deeper control. One platform, no compromise. Download a free 30-day trial now.
Get Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of EasyPermissions!

Additional Project Details

Operating Systems

Android

Programming Language

Java

Related Categories

Java Libraries

Registered

2021-06-22