Get a Content URI from a File URI?

后端 未结 3 699
执笔经年
执笔经年 2021-02-09 06:36

I am using the DownloadManager to download an image to the system\'s gallery and then in the Broadcast receiver (once the download succeeds) using an Intent to set the image as

3条回答
  •  难免孤独
    2021-02-09 07:31

    So my question is if anyone knows how to convert a full file path/URI (file://) into a content style URI (content://)?

    Implement a ContentProvider. FileProvider offers an out-of-the-box solution for serving up local files.

提交回复
热议问题