Android Question Android image gallery - deleting images

peacemaker

Expert
Licensed User
Longtime User
Hi, All

I am creating a Gallery app, to sort out my tons of photos.
But it seems, deleting the garbage old photos ... is impossible, due to permissions without the root.

Is it correct ? So, impossible to clear the device from old photos ? Or any solution ?
 

Mahares

Expert
Licensed User
Longtime User
So, impossible to clear the device from old photos ? Or any solution ?
Here is only a suggestion because I did not have a situation where I needed to delete old photos:
Create an app with Target SDK of 28 and request EXTERNAL_Storage permission. Delete all unwanted photos from File.DirectoryExternal that way, since it is only a one time operation.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Create an app with Target SDK of 28 and request EXTERNAL_Storage permission.
Yes ! It helps now to delete garbage photos one by one, but strange that it cannot be done fastly - i'm tapping them in the my gallery, but after first deletion - the second deletion works in 7-10 seconds only, not immediately.
Photos of Viber is not deleting...


No! Any picture can be deleted if firstly to open it to view ! Strange
 
Last edited:
Upvote 0
Top