

Make sure to get PARTIAL_WAKE_LOCK for your IntentService to ensure that CPU keeps running. Launch the app, press back button and then again come back to test the case of launching another Activity and coming back. Thanks in advance! P/S: I have already searched similar questions, but I can't find the solution for this one, so I had to create my own question in detail.

It would be great if there were any library or example which can solve my problems. And I don't know how to keep all the tasks running in the background and then post progress when the activity containing the ListView is active and keep the completed tasks For each download task, I can get the percentage complete, but I don't know how to broadcast them to an adapter to display progress. I tried to use the ThreadPoolExcutor in a Service. Keep the completed download tasks until users want to remove them.When they come back, display the current progress and status of the download tasks. When they leave, continue downloading in the background. The ListView is in the download activity.Users can cancel the download task, and remove this task from the ListView.Allow a maximum of 5 download tasks, other tasks have to wait.Each download task displays in one ListView item with a progress bar, percentage and current status (downloading, waiting, finished).I want to create a ListView that allows the user to download many files and show a progress bar status in each ListView item.
