Code example for StrictMode.VmPolicy.Builder

Methods: build, penaltyLog

0
    } 
     
    @Override 
    @TargetApi(TARGET_VERSION)
    protected VmPolicy onUpdateVmPolicy(Builder builder) {
        builder.penaltyLog();
        return builder.build();
    } 
     
    @Override 
    protected boolean shouldRestoreVmPenaltyLog() { 
        return false; 
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE