googlesamples / easypermissions

Simplify Android M system permissions
https://firebaseopensource.com/projects/googlesamples/easypermissions/
Apache License 2.0
9.87k stars 1.46k forks source link

EasyPermissions.requestPermissions How to request the permission directly without pop up the tip message. #235

Closed IT-Talon closed 6 years ago

IT-Talon commented 6 years ago

Basic Information

Device type: _Oneplus 6___ OS version: __8.1.0 EasyPermissions version: _1.2.0___

Describe the problem

What happened? What did you expect to happen?

I reject the permission request first,then I request the permission again,it will pop up a tip message then the request permission box of the system. I just want it to request the system permission directly without poping up the tip message,what should I do?

Code and logs


// TODO(you): show the code that produces the problem,
//            and any relevant logs.
samtstern commented 6 years ago

@IT-Talon that pop up box is called "rationale" and it is recommended (strongly) by Android UX guidelines. The goal of this library is to make following those guidelines really easy. If you want to do something else, EasyPermissions is not for you!