if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {//严格模式
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(builder.build());
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {//严格模式
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(builder.build());
}