(java 7) It seems that onAccepted or onDenied are not called
Bloubloublou opened this issue · 3 comments
Bloubloublou commented
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 commented
Yeah onAccepted() not call in first run. Why ?
florent37 commented
can you try with the last version ?
iman2420 commented
I tried to use it.
But the problem was not resolved.
I finally deleted the library