How to pause and resume DownloadManager

I know that this question is duplicated, I do not have a satisfactory answer. I use the Android System DownloadManager to download a file from network work, it works fine with file download.

private DownloadManager downloadManager; Button start; Button pause; Button resume; 

initialization of all buttons above

 downloadManager = (DownloadManager) getSystemService(DOWNLOAD_SERVICE); Uri Download_Uri = Uri .parse("uri"); DownloadManager.Request request = new DownloadManager.Request( Download_Uri); 

then the download queue was set. when the turn draws near, it starts loading

my problem is is there an easy way to pause the download and resume the download as

 downloadManager.pause(); downloadManager.resume(); 

Thanks in advance.

+8
android download android-download-manager
source share

No one has answered this question yet.

See similar questions:

nineteen
Implement pause / resume file download
thirteen
How to pause the use of DownloadManager?
4
DownloadManager with manual pause and resume
0
Android pauses and resumes downloading a file to sdcard

or similar:

3295
Why is the Android emulator so slow? How can we speed up Android emulator development?
2510
How to keep Android activity state by saving instance state?
2284
How can I fix the 'android.os.NetworkOnMainThreadException'?
1844
How to place text horizontally and vertically in a TextView?
3
DownloadManager requests pending on Android Pie
2
Error loading Android DownloadManager "Network Required"
one
Android DownloadManager and FileProvider
0
Android boot file in the application internal space
0
Download manager makes application freeze
0
how to pause the bootloader in android

All Articles