All Projects → anshulagarwal06 → Simplify-Permissions

anshulagarwal06 / Simplify-Permissions

Licence: other
Android library to simplifies the android permission request at runtime.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Simplify-Permissions

PermissionManager
android6.0之后开始会有权限使用的问题。这个项目演示了如何在代码中动态申请权限。尤其是"存储"这一个在6.0之前不需要申请的权限,本项目以这个作为例子。
Stars: ✭ 21 (-4.55%)
Mutual labels:  permission-manager, permission, permission-android
Permissionsdispatcher
A declarative API to handle Android runtime permissions.
Stars: ✭ 10,851 (+49222.73%)
Mutual labels:  permission, permission-android
Xxpermissions
Android 权限请求框架,已适配 Android 12
Stars: ✭ 2,971 (+13404.55%)
Mutual labels:  permission, permission-android
lui-auth
一个使用简单的安全防护、权限验证、身份验证工具,无复杂配置,只需依赖jar并简单配置即可使用,目前拥有功能:角色、菜单、权限集成管理,IP限流,内部服务双向验证、自动打印请求日志等
Stars: ✭ 18 (-18.18%)
Mutual labels:  permission
silly-android
Android plugins for Java, making core Android APIs easy to use
Stars: ✭ 40 (+81.82%)
Mutual labels:  permission
PermissionDirector
a iOS permission manager writtern by Swift
Stars: ✭ 29 (+31.82%)
Mutual labels:  permission
RiskInDroid
A tool for quantitative risk analysis of Android applications based on machine learning techniques
Stars: ✭ 69 (+213.64%)
Mutual labels:  android-permissions
sentry
A lightweight (23KB) wrapper for inline Android permission checks/requests.
Stars: ✭ 22 (+0%)
Mutual labels:  android-permissions
HealthCare-Scan-Nearby-Hospital-Locations
I developed this android application to help beginner developers to know how to use Google Maps API and how to convert JSON data into Java Object.
Stars: ✭ 23 (+4.55%)
Mutual labels:  permission-android
Acl
The Hoa\Acl library.
Stars: ✭ 27 (+22.73%)
Mutual labels:  permission
startask-permissions
Is a library that helps to handle runtime permissions on Android, entirely written using Kotlin language.
Stars: ✭ 39 (+77.27%)
Mutual labels:  android-permissions
objection-authorize
isomorphic, "magical" authorization integration with Objection.js 🎉
Stars: ✭ 71 (+222.73%)
Mutual labels:  permission
HeimGuard
🛡 A simple library that allows you to easily manage permissions in your .NET projects.
Stars: ✭ 77 (+250%)
Mutual labels:  permission
vue-admin-work
🎉🎉🚀🚀🚀🚀vue-admin-work是一个中后台系统管理方案。使用 vue2.x 及周边全家桶工具开发而来。支持多种功能,不同角色权限🚀🚀🚀🎉🎉
Stars: ✭ 74 (+236.36%)
Mutual labels:  permission
access-control
Simple, flexible and reliable access control for NodeJS and Typescript. Supports both RBAC and ABAC.
Stars: ✭ 29 (+31.82%)
Mutual labels:  permission
android-helpers
Android helpers collection
Stars: ✭ 20 (-9.09%)
Mutual labels:  permission
casbin-ex
An authorization library that supports access control models like ACL, RBAC, ABAC in Elixir
Stars: ✭ 37 (+68.18%)
Mutual labels:  permission
sqlx-adapter
Asynchronous casbin adapter for mysql, postgres, sqlite based on sqlx-rs
Stars: ✭ 27 (+22.73%)
Mutual labels:  permission
permission-requester
A simple permission request activity that let you grant permissions easylly.
Stars: ✭ 20 (-9.09%)
Mutual labels:  permission-requests
PermissionAgent
一次初始化处处可用的链式编程动态权限请求库
Stars: ✭ 21 (-4.55%)
Mutual labels:  permission

Simplify Permission

Simplify Android permission with in-build message Dialogs.

Feature

  • InBuild Rational Dialog with custom message
  • InBuild SettingScreen Dialog with custom Message.
  • Callback for permission state :
    • Permission granted
    • Permission removed
    • Permission access removed.

How to use

  • Extent Activity to MarshmallowSupportActivity
    public class MainActivity extends MarshmallowSupportActivity
  • Create PermissionBuilder.
            String[] CAMERA_PERMISSIONS = {Manifest.permission.CAMERA};

            PermissionBuilder permissionBuilder =
            new PermissionBuilder(CAMERA_PERMISSIONS,REQUEST_CARMERA, mPermissionCallback);
            .enableDefaultRationalDialog("Ration dialog title", "Ration Dialog message")
            .enableDefaultSettingDialog("Setting Dialog title", "Setting dialog message");

  • Call requestAppPermissions(permissionBuilder.build())
            requestAppPermissions(permissionBuilder.build());
  • Handle Permission callBacks
    private mPermissionCallback = new PermissionCallback(){

        @Override
        public void onPermissionGranted(int requestCode) {

        }

        @Override
        public void onPermissionDenied(int requestCode) {

        }

        @Override
        public void onPermissionAccessRemoved(int requestCode) {

        }
    }

Download

Include jitpack.io inside of root project build.gradle:

allprojects {
		repositories {
			...
			maven { url "https://jitpack.io" }
		}
	}

After that you can easily include the library in your app build.gradle:

dependencies {
	        compile 'com.github.anshulagarwal06:Simplify-Permissions:v1'
	}

That's it. build your project.

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].