How to solve the problem that downloading too many pictures in Android often fails?

when I work on a project, I need to download more than 100 pictures (pictures of different sizes from 10k-400k) to the local area to perform offline business, but images often fail to download (partial downloads fail). Is there a way to solve the problem that downloads fail because there are too many pictures?

Feb.28,2021

first of all, if you want to find out the reason for the download failure, you can grab a package on your computer. I guess the connection was rejected or something, but I haven't tried it either. If you don't want to grab packet analysis, try using the download queue instead of issuing hundreds of requests at the same time. For example, you can only download 5 requests at a time, each request timed out for 30 seconds, and then dropped to the end of the queue to wait for retry. Each request can be retried a maximum of 5 times.

Menu