16

I know this question is duplicated, I haven't got complacent answer. I am using Android System DownloadManager to download file from net work, it works fine with downloading file.

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

initializing all the buttons above

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

then it has been put download queue. when turn is coming it begin downloading

my problem is, is there any simple way to pause download and resume download like

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

Thanks in advance.

gnuanu
  • 2,252
  • 3
  • 29
  • 42
RealDream
  • 407
  • 3
  • 6
  • 18
  • Possible duplicate of https://stackoverflow.com/questions/7254285/how-to-pause-using-downloadmanager – Jian Dec 20 '18 at 07:34

0 Answers0