Do we need permission to get all files that is self-created by the app after the app is reinstalled in AndroidQ?

前端 未结 2 1158
孤独总比滥情好
孤独总比滥情好 2020-12-21 19:22

Use-Case:

Here, I can create and save files in local storage using MediaStore and get all the files from MediaStore. But Once I clear-storage or reinstall the app, th

2条回答
  •  囚心锁ツ
    2020-12-21 20:05

    Do we need permission to read the self-created files once the app is reinstalled?

    Wrong question.

    If you deinstall your app and then reinstall it it is considered a different app.

    Hence your app cannot 'see' the files in the media store that were created by the deinstalled app.

    As there are no permissions you can do nothing.

提交回复
热议问题