본문 바로가기
Android/소스

FileUriExposedException 안드로이드 n(sdk 24)에러잡기.(sdcard)

by 므시칸곰틔군 2017. 4. 19.


FileUriExposedException 안드로이드 n(sdk 24)에러잡기.(sdcard)




file:// scheme is now not allowed to be attached with Intent on targetSdkVersion 24 (Android Nougat). And here is the solution.

https://inthecheesefactory.com/blog/how-to-share-access-to-file-with-fileprovider-on-android-nougat/en


사이트에 자세히 나와있으나......

외장sdcard는 안됨...

검색..후

<?xml version="1.0" encoding="utf-8"?>

<paths xmlns:android="http://schemas.android.com/apk/res/android">

    <external-path

        name="external_files"

        path="."/>

    <external-path

        name="external_storage_root"

        path="."/>

    <root-path

        name="root"

        path="/"/>

'Android > 소스' 카테고리의 다른 글

안드로이드 리사이클러뷰(RecyclerView) 정리.  (0) 2018.02.02
RecyclerView Adapter 사용  (0) 2017.09.07
향상된 for  (0) 2016.02.01
백버튼 클릭 종료 핸들러  (0) 2015.08.04
안드로이드 로그캣 스테틱 로그유틸  (0) 2015.03.18