Android marshmallow request permission?

后端 未结 24 2102
無奈伤痛
無奈伤痛 2020-11-21 06:40

I am currently working on an application that requires several \"dangerous\" permissions. So I tried adding \"ask for permission\" as required in Android Marshmallow(API Lev

24条回答
  •  既然无缘
    2020-11-21 07:04

    Runtime Permission AnyWhere In ApplicationHere is Example

    use dependency
    maven { url 'https://jitpack.io' }
    dependencies {
    implementation 'com.github.irshadsparky:PermissionLib:master-SNAPSHOT'
    }
    

    and call code like this :

    PermissionHelper.requestCamera(new PermissionHelper.OnPermissionGrantedListener() {
    @Override
    public void onPermissionGranted() {
    
    }
    });
    

    you can find more Github

提交回复
热议问题