Hide downloads from download manager android

牧云@^-^@ 提交于 2019-12-10 13:33:19

问题


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?


回答1:


Try setVisibleInDownloadsUi() on your DownloadManager.Request.



来源:https://stackoverflow.com/questions/20950597/hide-downloads-from-download-manager-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!