Android download queue using DownloadManger

前端 未结 2 1953
Happy的楠姐
Happy的楠姐 2021-01-06 12:36

I\'m using DownloadManager to download my files in android and its great since it handles everything (connectivity lost, retry, etc.) The problem is I want my file to be dow

2条回答
  •  迷失自我
    2021-01-06 13:07

    Very simple:

    1)Create a database and insert your url into it.

    2)create a receiver for download complete action of downloadmanager in your manifest.

    3)when received a download complete read a row from your database and start new download(enqueue).

    happy coding:-)

提交回复
热议问题