Dexter
Dexter copied to clipboard
Camera permissions not click allow and deny direct callback
Please forgive my English is not good
Expected behaviour
Camera access normal callback
Actual behaviour
Camera permissions not click allow and deny direct callback
Steps to reproduce
mServiceScanView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Dexter.withActivity(getActivity())
.withPermission(Manifest.permission.CAMERA)
.withListener(ServiceLazyFragment.this)
.check();
}
});
Click on the screen after permission to apply for dialog,At the same time direct callback,I don't have a click allow and deny
@Override
public void onPermissionGranted(PermissionGrantedResponse response) {
KLog.e("允许相机权限");
}
E/ServiceLazyFragment.java: [ (ServiceLazyFragment.java:179)#OnPermissionGranted ] 允许相机权限
Mobile version:
Version of the library
com.karumi:dexter:4.1.0
I think that is a bug. You changed your camera permission manually. Unistall your app and reinstall.
Uninstall or reinstall is still the same problem ,I don't have to manually modify permissions, is through the code to access
@qinyang1018 what compilationversion are you using in you build.gradle?
@flipper83
I'm sorry To reply until now
this is my build.gradle
Please be sure that you have your Camera permission in your AndroidManifest.xml
. Had this same behaviour times ago.
it have on AndroidManifest.xml
Is this problem solved ?