private void showDialog ( PermBean permBean ) { PermissionDialogFragment fragment = PermissionDialogFragment . getInstance ( permBean , requestCode ) ; fragment . show ( mActivity . getSupportFragmentManager ( ) , TAG ) ; }
Show dialog fragment to show dialogs before asking permission . Or you can set to show dialogs only when user denied permission earlier .