I'm downloading video with DownloadManager and DownloadService.
I can see download notification with progress.
When I pause download via DownloadService.sendSetStopReason notification is cancel.
I would like to resume download by click on notification button "resume" (like player play/pause)
Please tell me how to pause the download and not cancel the notification?
P.S. 1:
Yes, I can show my notification. But then the animation of canceling and adding a notification will be visible. I would like to interact with one notification (similar to the play/pause player)
P.S. 2:
As an idea, make one endless download and don't show a notification for it.
In this case, if at least one download is active, the notification will be visible.
But it’s not clear how to make sure that this download does not take up device resources/does not occupy a worker thread
I'm downloading video with DownloadManager and DownloadService. I can see download notification with progress. When I pause download via DownloadService.sendSetStopReason notification is cancel. I would like to resume download by click on notification button "resume" (like player play/pause) Please tell me how to pause the download and not cancel the notification?
P.S. 1: Yes, I can show my notification. But then the animation of canceling and adding a notification will be visible. I would like to interact with one notification (similar to the play/pause player) P.S. 2: As an idea, make one endless download and don't show a notification for it. In this case, if at least one download is active, the notification will be visible. But it’s not clear how to make sure that this download does not take up device resources/does not occupy a worker thread