在Android 7.0中打开相机时,我的应用程序崩溃了
File captureFilePath = new File(cachePath, CommonUtil.getDateTimeForFileName(System.currentTimeMillis())+".jpg");
Uri uri = Uri.fromFile(captureFilePath);
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, uri);
startActivityForResult(intent, REQUEST_CAPTURE_IMAGE);
CAPTURE_IMAGE_PATH = captureFilePath.getAbsolutePath();