2

I'm struggling with DownloadManager on androidtv, I finally could implement download with the download manager, but I don't know the progress of the download process until it finishes, I would like implement download progress dialog.

I found the following link DownloadManager with notification but I don't know how to implement it.

Hope you could help.

Community
  • 1
  • 1
user773456
  • 611
  • 2
  • 9
  • 14

1 Answers1

0

Since you already were able to implement downloading using DownloadManager, you may try adding a COLUMN_BYTES_DOWNLOADED_SO_FAR constant to get the number of bytes downloaded so far.

You may get ideas on how implementation should be done from the solutions given in the following SO posts:

Another option that you may try is to use ProgressDialog. As mentioned in the documentation, it functions as

A dialog showing a progress indicator and an optional text message or view.

To help you with the implementation part, please check the brief but comprehensive solution given in this SO post - Download a file with Android, and showing the progress in a ProgressDialog.

Community
  • 1
  • 1
Teyam
  • 7,686
  • 3
  • 15
  • 22