when take photo get - java.lang.Throwable: file:// Uri exposed through ClipData.Item.getUri()

后端 未结 5 1511
灰色年华
灰色年华 2020-12-05 10:49

The Exception is:

file:// Uri exposed through ClipData.Item.getUri()
java.lang.Throwable: file:// Uri exposed through ClipData.Item.getUri()
    at android.         


        
5条回答
  •  自闭症患者
    2020-12-05 11:12

    To sum up : file:// scheme is now not allowed to be attached with Intent on targetSdkVersion 24 (Android Nougat)

    You have to Change your code if you plan to support api 24+ two links : https://developer.android.com/training/camera/photobasics.html https://inthecheesefactory.com/blog/how-to-share-access-to-file-with-fileprovider-on-android-nougat/en

提交回复
热议问题