Popularity
0.7
Stable
Activity
0.0
Stable
6
1
3

Code Quality Rank: L5
Programming language: Java
Tags: Security     Permission     Runtime     Marshmallow     Library    
Latest version: v2.0.0

Android Permission Check Library alternatives and similar packages

Based on the "Security" category.
Alternatively, view Android Permission Check Library alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Android Permission Check Library or a related project?

Add another 'Security' Package

README

Android Permission Check Library

Status

Build Status Download API

Adding the library as depndency

Add library dependency using gradle:

compile 'com.reqica.drilon:android-permission-check-library:2.0.0'

Add library dependency using maven:

<dependency>
  <groupId>com.reqica.drilon</groupId>
  <artifactId>android-permission-check-library</artifactId>
  <version>2.0.0</version>
  <type>pom</type>
</dependency>

Add library dependency using ivy:

<dependency org='com.reqica.drilon' name='android-permission-check-library' rev='2.0.0'>
  <artifact name='android-permission-check-library' ext='pom' ></artifact>
</dependency>

Usage

Initialize Class CheckPermission:

CheckPermission checkPermission = new CheckPermission(context);

If you want to check and ask for a Single permission, call:

checkPermission.checkOne(@NonNull final String permission, @Nullable final String dialogMessage)

The 1st parameter is the actual permission, and the 2nd one is an optional Dialog Message that you can show to the user as an extra dialog, for better explanation/reason of the permission asked.

If you want to check and ask for Multiple permissions at once, call:

checkPermission.checkMultiple(@NonNull final String[] permissions, @Nullable final String dialogMessage)

The 1st parameter is the actual permission, and the 2nd one is an optional Dialog Message that you can show to the user as an extra dialog, for better explanation/reason of the permissions asked.

If you want to go to the settings screen and see which permission are Granted and which ones are not, call:

checkPermission.openPermissionsSettings(@NonNull String packageName) {

The parameter you need to give here is the actual root packageName of the app.

General Knowledge

To be able to check/ask for the permissions you first need to declare them in your projects AndroidManifest.xml