Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear the android downloadmanager notification?

I am downloading a zip file from the server using DownloadManager. After downloading I extracted the content from the file and showed in my app.

I want to clear the Download Complete Notification programmatically so that I can generate a new notification of "File is Extracting" like Play Store does and after extraction is complete, will show the new notification showing the "Extraction Completed".

I have attached the screenshots of the play store notification.

When file is installing enter image description here

When file installed enter image description here

like image 427
Aman Jain Avatar asked Dec 27 '25 16:12

Aman Jain


1 Answers

Just set this to your request:

 request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE);
like image 200
CodesmithX Avatar answered Dec 30 '25 05:12

CodesmithX



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!