Skip to content Skip to sidebar Skip to footer

Clear Out Android Downloads List

I am trying to make an application that will do some cleanup on my device among other things I would like it to delete all of the files residing in my Download dir. I use a method

Solution 1:

It is actually possible to clear the entries in the Download application. You can simply use the remove(id) method from the DownloadManager. The only problem is that you probably don't have the referenceId of the downloaded file anymore. If you have the local file Uri or filename, you can simply query the DownloadManager for the successful downloads and look up the id. It seems very cumbersome, but works.


Post a Comment for "Clear Out Android Downloads List"