The new error occurred while calling camera Android7.0:
android.os.FileUriExposedException: file:///storage/emulated/0/photo.jpeg exposed beyond app through ClipData.Item.getUri()
// Android 7.0 system to solve the problem photographed StrictMode.VmPolicy.Builder Builder = new new StrictMode.VmPolicy.Builder (); StrictMode.setVmPolicy(builder.build()); builder.detectFileUriExposure();