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.
android download android-download-manager
Realdream
source share