Karumi / Dexter

Android library that simplifies the process of requesting permissions at runtime.
http://karumi.com
Apache License 2.0
5.23k stars 671 forks source link

Check permission error in Android Studio #172

Open alizarei95 opened 7 years ago

alizarei95 commented 7 years ago

after using dexter to handle runtime permissions , android studio still shows error on lines which need to runtime permission.I don't had this problem with Permissive library is this a problem in dexter? or any idea to solve this problem?

Serchinastico commented 7 years ago

Hi @alizarei95,

Thanks for reporting, we'll need a code snippet showing us what permissions are using and the code you wrote to use said permission. We'll see if we can give AS some sort of hint so that it knows that you can use those APIs safely.

alizarei95 commented 7 years ago

you can see everything i said in this images

Dexter untitled

Permissive capture

@Serchinastico

fooock commented 7 years ago

Permissive not show the hint in the AS because the method PermissionsGrantedListener#onPermissionsGranted() throws a SecurityException, when Dexter method PermissionListener#onPermissionGranted() not.

joelbrostrom commented 6 years ago

Should I just ignore the errors, or can I somehow add the flags to suppress the Errors?