Permission Denial: Couln't attach file, File requires the provider be exported, or grantUriPermission(), API 29

后端 未结 1 1517
既然无缘
既然无缘 2021-01-23 02:58

I have been trying to share one image from external storage and it is not working in API 29. the error message is: Permission denial, the file requires the provider be exported,

1条回答
  •  清歌不尽
    2021-01-23 03:45

    After searchig for hours and hours, I finally find a solution based on enter link description here. I had to add to manifest this line : android:requestLegacyExternalStorage="true" to make content redeable in version 10 , Q API 29, and everithing works.I could attach the file.

    0 讨论(0)
提交回复
热议问题