All Projects → mahdit83 → advancedPermissionHandler

mahdit83 / advancedPermissionHandler

Licence: Apache-2.0 license
This Android library is for handle running time permissions in simplest way!

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to advancedPermissionHandler

Nest Access Control
Role and Attribute based Access Control for Nestjs 🔐
Stars: ✭ 562 (+4223.08%)
Mutual labels:  helper, permissions
permissionUtil
Simple permission helper
Stars: ✭ 64 (+392.31%)
Mutual labels:  helper, permissions
Figma Linux Font Helper
Font Helper for Figma for Linux x64 platform
Stars: ✭ 136 (+946.15%)
Mutual labels:  helper
MVPHelper
Base classes for quick and easy implementation of MVP for Android applications.
Stars: ✭ 17 (+30.77%)
Mutual labels:  helper
Handlebars Helpers
Related projects
Stars: ✭ 2,024 (+15469.23%)
Mutual labels:  helper
Blame Bird
Checks which app uses lots of space in the `Library/Caches/com.apple.bird` folder
Stars: ✭ 142 (+992.31%)
Mutual labels:  helper
Loco Answers
Open Source Android App for answers in TRIVIA GAMES
Stars: ✭ 180 (+1284.62%)
Mutual labels:  helper
Old
每天大红包 · 旧版(不再维护,仅供参考)
Stars: ✭ 1,611 (+12292.31%)
Mutual labels:  helper
spicedb
Open Source, Google Zanzibar-inspired fine-grained permissions database
Stars: ✭ 3,358 (+25730.77%)
Mutual labels:  permissions
Dynamicswebapi
DynamicsWebApi is a Microsoft Dynamics 365 / Microsoft Dataverse (formerly known as Common Data Service) Web API helper library for JavaScript
Stars: ✭ 165 (+1169.23%)
Mutual labels:  helper
alog
Update: use loguru instead. Simple straight logging your Python code
Stars: ✭ 38 (+192.31%)
Mutual labels:  helper
Tinyconsole
📱💬🚦 TinyConsole is a micro-console that can help you log and display information inside an iOS application, where having a connection to a development computer is not possible.
Stars: ✭ 1,929 (+14738.46%)
Mutual labels:  helper
Trackable
Trackable is a simple analytics integration helper library. It’s especially designed for easy and comfortable integration with existing projects.
Stars: ✭ 143 (+1000%)
Mutual labels:  helper
Jd Helper
🐑 京东日常小助手, 省时省力, 京东萌宠, 免费水果 [暂停更新]
Stars: ✭ 199 (+1430.77%)
Mutual labels:  helper
Issues Helper
🤖 A GitHub Action easily helps you automatically manage issues. Welcome to try.
Stars: ✭ 140 (+976.92%)
Mutual labels:  helper
async-permissions
Easy handling for Android-M permission based on async/await
Stars: ✭ 25 (+92.31%)
Mutual labels:  permissions
Box
Python dictionaries with advanced dot notation access
Stars: ✭ 1,804 (+13776.92%)
Mutual labels:  helper
Ansible Aur
Ansible module to manage packages from the AUR
Stars: ✭ 149 (+1046.15%)
Mutual labels:  helper
Libchef
🍀 c++ standalone header-only basic library. || c++头文件实现无第三方依赖基础库
Stars: ✭ 178 (+1269.23%)
Mutual labels:  helper
graphql authorize
Authorization helpers for ruby-graphql fields
Stars: ✭ 23 (+76.92%)
Mutual labels:  permissions

Advanced Permission Handler

This library have an abstact Activty, advancedPermissionHandlerActivity is that handle all permission stuff, pice of cake. Main idea is from my dear friend Ali Nemati hayati.

Just inherit your desired Activity from PermissionHandlerActivity and simply call one of askForPermission() methods which one with auto-generate message ability for your given permissions (works for Farsi right now) and one with your custom message.

String[] permissions = new String[] {Manifest.permission.SEND_SMS, 
Manifest.permission.WRITE_EXTERNAL_STORAGE , Manifest.permission.READ_EXTERNAL_STORAGE , ...}

boolean stickyMode = true;

askForPermission(permissions , stickyMode, new PermissionCallBack() {
                    
                    @Override
                    public void onPermissionsGranted() {  
                        Log.i("mahdi", "onPermissionsGranted: ");
                    }

                    @Override
                    public void onPermissionsDenied(String[] permissions) {
                        Log.i("mahdi", "onPermissionsDenied: ");
                    }
                });

These are steps:

  1. First ask for all permissions.
  2. Then try to aks for ungranted-permissions with custom message again from user.
  3. Then try to open settings for permissions if user set 'Don't ask again'
  4. Finaly if user deny, onPermissionsDenied callback will triggers.

Sticky mode specifies that, if all these four steps happen in one session or not.

For using advancedPermissionHandler add this line to gradle:

compile 'ir.mtajik.android:advancedPermissionsHandler:1.0.2               

Mahdi Tajik

my weblog: http://www.mahditajik.ir

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].