M
M
Muhammad2015-07-20 00:48:32
Android
Muhammad, 2015-07-20 00:48:32

Download a large number of files in Android?

Hello. I have a list that has a download button (for each item separately). When you click on a button, the program finds out the position of the button in the list, opens a text file by position, and reads links to audio files. Links are separated by a line break "\n". I need these files to be downloaded one by one when the button is clicked, and after each audio file is downloaded, the progressbar is updated. Each item has its own progress bar. The text files themselves are in assets. How can this be implemented? You also need to consider that the user can click on more than one link.
PS I don't need code to read text files or download audio, I can do that. I need the algorithm of the program itself.
PS Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pukhov, 2015-07-20
@Neuroware

there will be no algorithm here, because it will not fit into the browser page. If in 2 words I would make a custom component, which would include label, progress bar. On the form, respectively, by binding or dynamically generating these controls. When the button is clicked, I would create a thread in which I would load the data in turn and change the value of the progress bar. Something like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question