File Provider 예제 썸네일형 리스트형 [안드로이드] File Provider 파일공유(Nougat7 + 대응) 안녕하세요 YTS 입니다.오늘은 File Provider에 대한 사용방법에 대해 알아보려합니다.Android 7.0 이상부터 파일공유 정책이 변경되었습니다. 그렇기에 File Provider에 대해 알아두셔야합니다. 파일에 일반 경로인 file://~ 을 참조하면 Fileuriexposedexception이 발생합니다.꼭 파일의 공유 uri는 content://로 시작되어야하며, 접근권한을 줘야하며안드로이드에서는 FileProvider 사용을 권장하고 있습니다. 1. res/xml/provider.xml 생성 2. Manifest에 해당 정보 입력 3. 파일 공유 방법 Intent intent = new Intent(android.content.Intent.ACTION_SEND); intent.setTy.. 이전 1 다음