当我单击摄像机中的图像时,在单击勾号时,我会自动导航到上一个片段。这仅在Redmi 6A中发生。
相机意图代码-
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(cameraIntent, 0);
活动结果代码-
if (resultCode == RESULT_OK) {
Uri selectedImage = data.getData();
String file_name = File_Path.getPath(getContext(), selectedImage);
destination = new File(file_name);
Glide.with(Objects.requireNonNull(getContext()))
.load(file_name)
.into(imageView);
}
和遇到此错误-
E/libc: Access denied finding property "ro.sf.lcd_density"
E/InputTransport: ro.sf.lcd_density must be defined as a build property