Search code examples
androidandroid-download-manager

Remove toast when DownloadManager finished


When a file downloaded with Android's DownloadManager finishes, it displays a Toast with the following text:

The file has been saved to the Download folder

I'm wondering if there is anyway to remove it, because it is not accurate in my case. I've looked through the methods of DownloadManger.Request and I can't find anything that might help.


Solution

  • Download Manager don't give any completion toast message from its side until you register Broadcast Receiver with DownloadManager.ACTION_DOWNLOAD_COMPLETE IntentFilter and receive in app's activity in BroadcasetReceiver.onReceive(Context context, Intent intent) method.