Guest User

Untitled

a guest
Nov 23rd, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. PermissionHelper permissionHelper = new PermissionHelper(this, new PermissionHelper.PermissionHelperListener() {
  2. @Override
  3. public void OnPermissionGranted(String permission, int requestCode) {
  4. //yippe, your app has been granted the permission, go ahead and do something useful with it.
  5. }
  6.  
  7. @Override
  8. public void OnPermissionDenied(String permission, int requestCode) {
  9. //Argh! Permission denied, decide what to do next, may be give feature which doesnt require this permission.
  10. }
  11.  
  12. @Override
  13. public void OnShowRationale(String permission, int requestCode) {
  14. //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.
  15. }
  16.  
  17. @Override
  18. public void OnNeverAskAgain(String permission, int requestCode) {
  19. //Argh! user has denied permission and has selected never show again!
  20. }
  21. });
Add Comment
Please, Sign In to add comment