Getting huge lags when downloading files via Service
- by Copa
I have a Service which receives URLs to download.
The Service than downloads these URLs and save them to a file on the SD Card.
When I put more than 2 items in the download queue my device is unusable. It nearly freezes. Huge lags and so on.
Any idea?
Sourcecode:
private static boolean downloading = false;
private static…