Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(java 7) It seems that onAccepted or onDenied are not called #11

Closed
Bloubloublou opened this issue Jul 5, 2018 · 3 comments
Closed

Comments

@Bloubloublou
Copy link

Hi, i hope you could help me...
Here is my code (basically the same as in readme)

`askPermission(this)
            .ask(new PermissionListener() {

                @Override
                public void onAccepted(RuntimePermission runtimePermission, List<String> accepted) {
                    //all permissions already granted or just grantedyour action
                    runOnUiThread(new Runnable() {
                        @Override
                        public void run() {
                            Log.d("PERMISSIONS", "accepted");
                        }
                    });
                }

                @Override
                public void onDenied(RuntimePermission runtimePermission, List<String> denied, List<String> foreverDenied) {
                    //the list of denied permissions
                    for (String permission : denied) {
                        Log.d("PERMISSIONS", permission + " denied");
                    }
                    //permission denied, but you can ask again, eg:

                    //the list of forever denied permissions, user has check 'never ask again'
                    for (String permission : foreverDenied) {
                        Log.d("PERMISSIONS", permission + " forever denied");
                    }
                    // you need to open setting manually if you really need it
                    //runtimePermission.goToSettings();
                }
            });`

The permission is asked but there is no log "accepted" or "denied" (when I try to call a pop up dialog it is not displayed) . Why that?

@iman2420
Copy link

Yeah onAccepted() not call in first run. Why ?

@florent37
Copy link
Owner

can you try with the last version ?

@iman2420
Copy link

iman2420 commented Sep 7, 2018

I tried to use it.
But the problem was not resolved.
I finally deleted the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants