Rafi Panoyan Rafi Panoyan - 1 year ago 296
Android Question

DownloadManager and Android 7.0 Cancel feature

Android N brought the "cancel" feature directly on the download notification if you're using the DownloadManager.

Did they add any intent-filter action to catch this event ?

At this point DownloadManager gets only 3 actions :




I tried to use
to cancel manually my download but if the user clicks on the "Cancel" button, I'm not notified.

Answer Source

The DownloadManager should send ACTION_DOWNLOAD_COMPLETE broadcast to your app if user click on Cancel. But it is a known bug in Android N, Android team is working on it:

Issue 219785: DownloadManager dose't send ACTION_DOWNLOAD_COMPLETE broadcast while click CANCEL button on notification to cancel the downloading.

We have to wait for fix!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download