jsericksk / ImageScopedStorage

A simple project in Jetpack Compose that uses Android scoped storage in images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Android 10] MediaStore entry is deleted, but the image file is not

jsericksk opened this issue · comments

When a SecurityException is thrown in Android 10, the MediaStore entry is deleted after the user allows the image to be deleted, however the file itself remains. The image can be seen in a file manager or even after a while, in some gallery apps or when restarting the phone.

Add android:requestLegacyExternalStorage="true" in AndroidManifest and request WRITE_EXTERNAL_STORAGE permission.