ImagePicker icon indicating copy to clipboard operation
ImagePicker copied to clipboard

拍照多张 都是同一张照片

Open SuezhouAndroid opened this issue 8 years ago • 2 comments

拍照多张 都是同一张照片

SuezhouAndroid avatar Oct 12 '17 11:10 SuezhouAndroid

@SuezhouAndroid ??

CYRUS-STUDIO avatar Oct 18 '17 15:10 CYRUS-STUDIO

@SuezhouAndroid @linchaolong 造成这个原因的代码如下:

CropImage类中
  /**
     * Get URI to image received from capture  by camera.
     *
     * @param context used to access Android APIs, like content resolve, it is your activity/fragment/widget.
     */
    public static Uri getCaptureImageOutputUri(@NonNull Context context) {
        Uri outputFileUri = null;
        File getImage = context.getExternalCacheDir();
        if (getImage != null) {
            outputFileUri = Uri.fromFile(new File(getImage.getPath(), "pickImageResult.jpeg"));
//这里把后缀名pickImageResult加上时间戳。
        }
        return outputFileUri;
    }

longalei avatar Aug 27 '18 09:08 longalei