app/src/main/java/com/example/test/rmtp/TwoLevelRtmpActivity.java
/**
     * Process result from permission request dialog box, has the request
     * been granted? If yes, start Camera. Otherwise display a toast
     */
Process result from permission request dialog box, has the request
been granted. If yes, start Camera. Otherwise display a toast
Process result from permission request dialog box has the request been granted . If yes start Camera . Otherwise display a toast
private boolean allPermissionsGranted(){
        for(String checkPermission:PERMISSIONS){
            if(ContextCompat.checkSelfPermission(this,checkPermission) != PackageManager.PERMISSION_GRANTED){
                return false;
            }
        }
        return true;
    }
private boolean allPermissionsGranted ( ) { for ( String checkPermission : PERMISSIONS ) { if ( ContextCompat . checkSelfPermission ( this , checkPermission ) != PackageManager . PERMISSION_GRANTED ) { return false ; } } return true ; }
Process result from permission request dialog box, has the request
 been granted?
Process result from permission request dialog box has the request been granted?