Hi
My app uses HttpUtils2 to download images from a server. The files are not big, and I can have up to 20-30 files download at a time. The app will only download a file once a success message has been received in JobDone that the previous file was successfully downloaded.
When I run this process connected to Wifi the files will download every time without fail. When I use Mobile Data though (Wifi disconnected), at some point one of the files will 'hang' and I'll eventually get the timeout message of 'SocketTimeOutException'. This happens almost every time on Mobile Data. At one point I restarted my device and it worked, but subsequently it has started happening again and even a restart doesn't fix it.
What are my options here? The mobile Data has a 4G connection so speed isn't an issue. The Wifi has a 3G connection, so even when I force my device to use 3G as Mobile Data, I still get the issue.
My app uses HttpUtils2 to download images from a server. The files are not big, and I can have up to 20-30 files download at a time. The app will only download a file once a success message has been received in JobDone that the previous file was successfully downloaded.
When I run this process connected to Wifi the files will download every time without fail. When I use Mobile Data though (Wifi disconnected), at some point one of the files will 'hang' and I'll eventually get the timeout message of 'SocketTimeOutException'. This happens almost every time on Mobile Data. At one point I restarted my device and it worked, but subsequently it has started happening again and even a restart doesn't fix it.
What are my options here? The mobile Data has a 4G connection so speed isn't an issue. The Wifi has a 3G connection, so even when I force my device to use 3G as Mobile Data, I still get the issue.