从丢失的相机片段中捕获图像,导航至上一个片段

时间:2019-02-18 06:17:28

标签: android android-camera-intent

当我单击摄像机中的图像时,在单击勾号时,我会自动导航到上一个片段。这仅在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

0 个答案:

没有答案