- Home /
Android multiple WWW freezes
I've been trying to program a Facebook friends list into my game for both the Android and the iOS (using Prime31's plugins). So I'm downloading the profile pics basically 6 at a time (4 on screen, 1 off screen above, and 1 off screen below) and cancelling downloads if they are not within that range. It seems to work just fine on my iPhone 3GS (using iOS 6). Everything gets disposed of properly. But on my Motorola Droid (using Android 2.2.3), it will start lagging then eventually crash if you scroll too fast.
I have a "Download" class that basically contains a WWW and an index. The index is just the position in the friends list. Every time the user removes their finger from the touch screen, the 6 friends profile pictures will start downloading. So in FixedUpdate(), I have it set to destroy a profile picture download if it's index is not within the range currently on the screen.
I use this to destroy profile picture downloads that are WWW requests "imageDownload = new WWW(url)"
imageDownload.Dispose();
imageDownload = null;
TL;DR = calls 6 WWW downloads for friend pictures on screen, FixedUpdate() disposes of downloads for friends not being displayed currently. iOS works. Android dies. Any idea why? If you want any more code snippets, let me know.
Your answer
![](https://koobas.hobune.stream/wayback/20220613084125im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
OutOfMemoryException when downloading files via the www class (iOS and Android) 1 Answer
IOS http request loads slower at the first call of the scene 0 Answers
how to delete specific files from cache? 3 Answers
unity3d www download of large texture mobile 0 Answers
Sending to API special french characters 0 Answers