FinalTeam / RxGalleryFinal

图片选择库,单选/多选、拍照、裁剪、压缩,自定义。包括视频选择和录制。
https://github.com/FinalTeam/RxGalleryFinal
2.83k stars 513 forks source link

打开照相机 存储位置 没有判断 是否有外部存储 #242

Open liudaohong opened 6 years ago

liudaohong commented 6 years ago

SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss", Locale.CHINA); String imageName = "immqy_%s.jpg"; String filename = String.format(imageName, dateFormat.format(new Date())); File mImageStoreDir = new File(Environment.getExternalStorageDirectory(), "/DCIM/IMMQY/"); if (!mImageStoreDir.exists()) { mImageStoreDir.mkdirs(); } fileImagePath = new File(mImageStoreDir, filename); String mImagePath = fileImagePath.getAbsolutePath();

sheep0704 commented 6 years ago

出现了什么问题