Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide downloads from download manager android

I am implementing a mp3 downloader for android. I am using native DownloadManager service. Obviously, when I download a file, it also shows the downloading(or downloaded) file in the Download Manager app. I want to hide the downloaded file from Downloaded Manager i.e. I don't want the file to be displayed in the download manager list. Is there any way to acheive this?

like image 575
berserk Avatar asked Jan 06 '14 12:01

berserk


1 Answers

Try setVisibleInDownloadsUi() on your DownloadManager.Request.

like image 95
CommonsWare Avatar answered Oct 14 '22 18:10

CommonsWare