Android ACTION_GET_CONTENT does not update download dir files

后端 未结 1 2067
我寻月下人不归
我寻月下人不归 2021-02-20 10:24

I am facing an issue while choosing a file from Downloads directory using ACTION_GET_CONTENT.

If I delete any file in ES explorer or fi

相关标签:
1条回答
  • 2021-02-20 11:19

    You must have to call getContentResolver().delete(uri, null, null) while deleting the file, where uri is the URI of the file to delete. This will update Media Store, which holds URIs of all files. So, when ACTION_GET_CONTENT opens the downloads directory, the file you deleted won't appear here.

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