static boolean shouldShowRequestPermissionRationale ( Activity activity , String ... permissions ) { for ( String permission : permissions ) { if ( ActivityCompat . shouldShowRequestPermissionRationale ( activity , permission ) ) { return true ; } } return false ; }
Checks given permissions are needed to show rationale .