WebClient on Android

Hi,

I am working on a project that needs to download many different textures at run time as these textures can change on a daily basis. I was using the WWW class to download these textures but I found that this was a big bottle neck. It was in fact making my application unresponsive until the downloads were complete. I found that some people also ran into similar issues with the WWW class being slow and it seems that they use the WebClient class. I have switched my logic up to use WebClient and this has resolved the bottle neck. It works great in editor and on iOS, however I am not able to get it to work on Android. Looking at the Android logcat I am getting an exception:

  • System.Net.WebException:Error:ConnectFailure(Connection refused)—>System.Net.Sockets.SocketException:Connection refused

Has anyone got webclient to work on android?

Bump still looking for an answer. I am a little confused if this is supported? I see that it is listed as compatible here:
http://docs.unity3d.com/412/Documentation/ScriptReference/MonoCompatibility.html. Yet I can’t find any documentation on how to get it working on android.