Android Permission Check Library


Source link: https://github.com/drilonreqica/Android-Permission-Check-Library

Android Permission Check Library

Status


[![Build Status]( https://travis-ci.org/drilonreqica/Android-Permission-Check-Library.svg?branch=develop)](https://travis-ci.org/drilonreqica/Android-Permission-Check-Library) [ ![Download]( https://api.bintray.com/packages/drilonreqica/maven/android-permission-check-library/images/download.svg) ]( https://bintray.com/drilonreqica/maven/android-permission-check-library/_latestVersion) [![API]( https://img.shields.io/badge/API-9%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=9) #### 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

Resources

VOTO Java SDK is a wrapper around the VOTO API to make it very easiy to use. The goal of this SDK is to ease VOTO API integration into both Android and Java applications.

A wrapper on instagram API for android.

Navigation tab bar with colorful interactions.

A pull to refresh view for android, the RecyclerRefreshLayout is based on the SwipeRefreshLayout. Highly customizable, code simplicity, etc.

Synthesize is an android library which can create layout images in background threads, services, etc without inflating them in activity or fragments.

A library to format dates as described in Material Design guidelines.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes