Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PermissionHelper permissionHelper = new PermissionHelper(this, new PermissionHelper.PermissionHelperListener() {
- @Override
- public void OnPermissionGranted(String permission, int requestCode) {
- //yippe, your app has been granted the permission, go ahead and do something useful with it.
- }
- @Override
- public void OnPermissionDenied(String permission, int requestCode) {
- //Argh! Permission denied, decide what to do next, may be give feature which doesnt require this permission.
- }
- @Override
- public void OnShowRationale(String permission, int requestCode) {
- //Show a message, why you are asking for this permission and then upon the user accepting the message request permission again this time without the rationale check.
- }
- @Override
- public void OnNeverAskAgain(String permission, int requestCode) {
- //Argh! user has denied permission and has selected never show again!
- }
- });
Add Comment
Please, Sign In to add comment