Camera1 Android 파일 공유(FileUriExposedException ) 안드로이드 N(7) 이후부터는 카메라로 촬영한 사진을 파일로 저장하려고 아래의 코드를 쓰게되면 FileUriExposedException 이 발생합니다. 1234intent=new Intent(MediaStore.ACTION_IMAGE_CAPTURE);photoUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory()+"/image/temp.jpg"));intent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri);startActivityForResult(intent, camera);Colored by Color Scriptercs 그 이유는 보안이 더 강화되면서 임시 액서스 권한을 부여해야 되기 때문입니다. .. 2017. 12. 6. 이전 1 다음 인기글